glibc/sysdeps/i386
Joseph Myers 0b7a5f9201 Fix log1p missing underflows (bug 16339).
Similar to various other bugs in this area, some log1p 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.  (The ldbl-128ibm implementation
doesn't currently need any change as it already generates this
exception, albeit through code that would generate spurious exceptions
in other cases; special code for this issue will only be needed there
when fixing the spurious exceptions.)

Tested for x86_64, x86, powerpc and mips64.

	[BZ #16339]
	* sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
	(__log1p): Force underflow exception for results with small
	absolute value.
	* sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
	(__log1pf): Force underflow exception for results with small
	absolute value.
	* sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
	(__log1p): Force underflow exception for results with small
	absolute value.
	* sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
	(__log1pf): Force underflow exception for results with small
	absolute value.
	* sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
	(__log1pl): Force underflow exception for results with small
	absolute value.
	* math/auto-libm-test-in: Do not allow missing underflow
	exceptions from log1p.
	* math/auto-libm-test-out: Regenerated.
2015-05-14 23:38:07 +00:00
..
fpu Fix log1p missing underflows (bug 16339). 2015-05-14 23:38:07 +00:00
i486
i586
i686 powerpc: Fix __wcschr static build 2015-04-15 16:01:48 -03:00
i786
nptl
sys
____longjmp_chk.S
__longjmp.S
abort-instr.h
add_n.S
addmul_1.S
asm-syntax.h
backtrace.c
bsd-_setjmp.S
bsd-setjmp.S
bzero.c
configure
configure.ac
crti.S
crtn.S
dl-irel.h
dl-lookupcfg.h
dl-machine.h
dl-procinfo.c
dl-procinfo.h
dl-tls.h
dl-tlsdesc.h
dl-tlsdesc.S
dl-trampoline.S
ffs.c
gccframe.h
gmp-mparam.h
htonl.S
htons.S
i386-mcount.S
Implies
jmpbuf-offsets.h
jmpbuf-unwind.h
ldbl2mpn.c
ldsodefs.h
lshift.S
machine-gmon.h
Makefile
memchr.S
memcmp.S
memcopy.h
memset.c
memusage.h
mp_clz_tab.c
mul_1.S
preconfigure
rawmemchr.S
rshift.S
setfpucw.c
setjmp.S
stackguard-macros.h
stackinfo.h
start.S
stpcpy.S
stpncpy.S
strchr.S
strchrnul.S
strcspn.S
string-inlines.c
strlen.c
strpbrk.S
strrchr.S
strspn.S
strtok_r.S
strtok.S
sub_n.S
submul_1.S
sysdep.h
tls-macros.h
tlsdesc.c
tlsdesc.sym
tst-audit.h
tst-stack-align.h
Versions