]> sourceware.org Git - newlib-cygwin.git/commit
newlib/libm/math: Make pow/powf return qnan for snan arg
authorKeith Packard via Newlib <newlib@sourceware.org>
Thu, 26 Mar 2020 00:18:21 +0000 (17:18 -0700)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 26 Mar 2020 11:21:33 +0000 (12:21 +0100)
commit6295d759133c399f1d4fcd224fa4f1bd2794288b
tree7760e66504e6dcadb9d81fbdede63657ae6eabbe
parent3439f3b0e998fd59f4ed277bb0c05bf24d7dc831
newlib/libm/math: Make pow/powf return qnan for snan arg

The IEEE spec for pow only has special case for x**0 and 1**y when x/y
are quiet NaN. For signaling NaN, the general case applies and these functions
should signal the invalid exception and return a quiet NaN.

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