]> sourceware.org Git - newlib-cygwin.git/commit
libm/math: Set errno to ERANGE for pow(0, -y)
authorKeith Packard via Newlib <newlib@sourceware.org>
Tue, 4 Aug 2020 22:22:22 +0000 (15:22 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 5 Aug 2020 20:16:31 +0000 (22:16 +0200)
commit98a4f8de47602e3aaff50715d53fc49fb43d0d9e
tree10d97cec9b6767ead52b2bbf5742d0abf98325db
parent2eafcc78dfe6d356a8d6debe439c8aa9839b1dbe
libm/math: Set errno to ERANGE for pow(0, -y)

POSIX says that the errno for pow(0, -y) should be ERANGE instead of
EDOM.

https://pubs.opengroup.org/onlinepubs/9699919799/functions/pow.html

Signed-off-by: Keith Packard <keithp@keithp.com>
newlib/libm/math/w_pow.c
newlib/libm/math/wf_pow.c
This page took 0.027904 seconds and 5 git commands to generate.