mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-14 17:11:06 +00:00
ec0ce0d3be
Similar to various other bugs in this area, some asin implementations do not raise the underflow exception for subnormal arguments, when the result is tiny and inexact. This patch forces the exception in a similar way to previous fixes. Tested for x86_64, x86, powerpc and mips64. [BZ #16351] * sysdeps/i386/fpu/e_asin.S (dbl_min): New object. (MO): New macro. (__ieee754_asin): Force underflow exception for results with small absolute value. * sysdeps/i386/fpu/e_asinf.S (flt_min): New object. (MO): New macro. (__ieee754_asinf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>. (__ieee754_asin): Force underflow exception for results with small absolute value. * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>. (__ieee754_asinf): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>. (__ieee754_asinl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>. (__ieee754_asinl): Force underflow exception for results with small absolute value. * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>. (__ieee754_asinl): Force underflow exception for results with small absolute value. * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]: Include <math.h>. * math/auto-libm-test-in: Do not mark underflow exceptions as possibly missing for bug 16351. * math/auto-libm-test-out: Regenerated. |
||
---|---|---|
.. | ||
doasin-fma4.c | ||
dosincos-fma4.c | ||
e_asin-fma4.c | ||
e_asin.c | ||
e_atan2-avx.c | ||
e_atan2-fma4.c | ||
e_atan2.c | ||
e_exp-avx.c | ||
e_exp-fma4.c | ||
e_exp.c | ||
e_log-avx.c | ||
e_log-fma4.c | ||
e_log.c | ||
e_pow-fma4.c | ||
e_pow.c | ||
halfulp-fma4.c | ||
Makefile | ||
mpa-avx.c | ||
mpa-fma4.c | ||
mpatan2-fma4.c | ||
mpatan-fma4.c | ||
mpexp-avx.c | ||
mpexp-fma4.c | ||
mplog-avx.c | ||
mplog-fma4.c | ||
mpsqrt-fma4.c | ||
mptan-fma4.c | ||
s_atan-avx.c | ||
s_atan-fma4.c | ||
s_atan.c | ||
s_ceil-c.c | ||
s_ceil.S | ||
s_ceilf-c.c | ||
s_ceilf.S | ||
s_floor-c.c | ||
s_floor.S | ||
s_floorf-c.c | ||
s_floorf.S | ||
s_fma.c | ||
s_fmaf.c | ||
s_nearbyint-c.c | ||
s_nearbyint.S | ||
s_nearbyintf-c.c | ||
s_nearbyintf.S | ||
s_rint-c.c | ||
s_rint.S | ||
s_rintf-c.c | ||
s_rintf.S | ||
s_sin-avx.c | ||
s_sin-fma4.c | ||
s_sin.c | ||
s_tan-avx.c | ||
s_tan-fma4.c | ||
s_tan.c | ||
sincos32-fma4.c | ||
slowexp-avx.c | ||
slowexp-fma4.c | ||
slowpow-fma4.c |