mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-14 21:10:19 +00:00
88283451b2
Various implementations of frexp functions return sNaN for sNaN input. This patch fixes them to add such arguments to themselves so that qNaN is returned. Tested for x86_64, x86, mips64 and powerpc. [BZ #20250] * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to itself. * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or zero input to itself. * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise. * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise. * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise. * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise. * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise. * math/libm-test.inc (frexp_test_data): Add sNaN tests. |
||
---|---|---|
.. | ||
e_acosh.c | ||
e_cosh.c | ||
e_fmod.c | ||
e_log2.c | ||
e_log10.c | ||
s_ceil.c | ||
s_finite.c | ||
s_floor.c | ||
s_frexp.c | ||
s_isinf.c | ||
s_isnan.c | ||
s_issignaling.c | ||
s_llround.c | ||
s_logb.c | ||
s_lround.c | ||
s_modf.c | ||
s_nearbyint.c | ||
s_remquo.c | ||
s_rint.c | ||
s_round.c | ||
s_scalbln.c | ||
s_scalbn.c | ||
s_trunc.c |