glibc/sysdeps/i386
Joseph Myers 4ba7a00fe3 Fix __ieee754_logl (-LDBL_MAX) in FE_DOWNWARD mode (bug 17022).
This patch fixes __ieee754_logl (-LDBL_MAX) on x86_64 and x86 not to
subtract 1 from its argument and so cause spurious overflow in
FE_DOWNWARD mode.  (For any argument strictly less than -1, it doesn't
matter whether or not 1 is subtracted before computing log1p, as long
as the result doesn't overflow to -Inf.)

Tested x86_64 and x86.  (This particular case lacks test coverage,
since the testsuite doesn't cover -lieee, but it will be covered by
tests after the following patch to test pow in all rounding modes,
which was the context in which this bug was found.)

	[BZ #17022]
	* sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
	from arguments -2 or below.
	* sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
	* sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
2014-06-18 12:32:01 +00:00
..
fpu Fix __ieee754_logl (-LDBL_MAX) in FE_DOWNWARD mode (bug 17022). 2014-06-18 12:32:01 +00:00
i486 Move i386 code out of nptl/ subdirectory. 2014-06-12 10:08:24 -07:00
i586 Move i386 code out of nptl/ subdirectory. 2014-06-12 10:08:24 -07:00
i686 Fix __ieee754_logl (-LDBL_MAX) in FE_DOWNWARD mode (bug 17022). 2014-06-18 12:32:01 +00:00
i786
nptl Move i386 code out of nptl/ subdirectory. 2014-06-12 10:08:24 -07:00
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 Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
dl-lookupcfg.h
dl-machine.h Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
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
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 Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. 2014-04-03 10:47:14 -07:00
tlsdesc.sym
tst-audit.h
tst-stack-align.h
Versions