glibc/sysdeps
Joseph Myers 37d83a089d Fix tanh missing underflows (bug 16520).
Similar to various other bugs in this area, some tanh 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, mips64 and powerpc.

	[BZ #16520]
	* sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
	(__tanh): Force underflow exception for arguments with small
	absolute value.
	* sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
	(__tanhf): Force underflow exception for arguments with small
	absolute value.
	* sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
	(__tanhl): Force underflow exception for arguments with small
	absolute value.
	* sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
	(__tanhl): Force underflow exception for arguments with small
	absolute value.
	* sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
	(__tanhl): Force underflow exception for arguments with small
	absolute value.
	* math/auto-libm-test-in: Add more tests of tanh.
	* math/auto-libm-test-out: Regenerated.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
2015-08-13 16:40:39 +00:00
..
aarch64 Improve feenableexcept performance - avoid an unnecessary FPCR read in case 2015-08-05 16:24:02 +01:00
alpha
arm [ARM][BZ #17711] Fix extern protected data handling 2015-07-24 10:05:07 +01:00
generic
gnu
hppa hppa: _dl_symbol_address: add missing hidden def 2015-08-07 01:45:00 -04:00
i386 Fix tanh missing underflows (bug 16520). 2015-08-13 16:40:39 +00:00
ia64 ia64: atomic.h: fix atomic_exchange_and_add 64bit handling 2015-07-28 02:30:15 -04:00
ieee754 Fix tanh missing underflows (bug 16520). 2015-08-13 16:40:39 +00:00
init_array
m68k
mach
microblaze
mips
nacl NaCl: Remove bogus O_SHLOCK, O_EXLOCK definitions. 2015-07-24 12:31:23 -07:00
nios2 Fixes extern protected data handling testcases elf/tst-protected1a 2015-07-26 05:27:18 -07:00
nptl
posix Fix BZ #18086 -- nice resets errno to 0. 2015-08-11 23:40:00 -07:00
powerpc powerpc: Fix stpcpy performance for power8 2015-08-11 10:03:10 -03:00
pthread
s390
sh
sparc Improve performance of mempcpy by inlining and using memcpy. Enable 2015-08-05 16:24:04 +01:00
tile tilepro: fix warnings in sysdeps/tile/tilepro/bits/atomic.h 2015-08-04 12:07:53 -04:00
unix Don't include <cpuid.h> in elision-conf.h 2015-08-13 03:46:26 -07:00
wordsize-32
wordsize-64
x86 Check if cpuid is available in init_cpu_features 2015-08-13 04:53:03 -07:00
x86_64 Update libmvec multiarch functions for <cpu-features.h> 2015-08-13 03:41:47 -07:00