glibc/sysdeps
Joseph Myers edea402804 Fix ldbl-128 powl sign of result in overflow / underflow cases (bug 17097).
This patch fixes bug 17097, ldbl-128 powl producing overflowing /
underflowing results with positive sign when the result should have
been negative.  This was shown up by the tests in non-default rounding
modes added by my patch for bug 16315, but isn't actually limited to
non-default rounding modes: rather, when rounding to nearest the
wrappers produced a result with the correct sign and so always hid the
bug unless -lieee was used to disable the wrappers.  The problem is
that in the cases where Y is large enough that the result overflows or
underflows for X not very close to 1, but not large enough to overflow
or underflow for all X != +/- 1 (in the latter case Y is always an
even integer), a positive overflowing / underflowing result is always
returned, rather than one with the correct sign.  This patch moves the
relevant part of computation of the sign earlier and returns a result
of the correct sign.

Tested for mips64.

	[BZ #17097]
	* sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
	result with correct sign in case of exponents that produce
	overflow except for X very close to 1.
2014-06-29 11:49:08 +00:00
..
aarch64 Remove relro configure test. 2014-06-27 16:51:22 +00:00
alpha Remove relro configure test. 2014-06-27 16:51:22 +00:00
arm Remove relro configure test. 2014-06-27 16:51:22 +00:00
generic Fix Wundef warning for MEMCPY_OK_FOR_FWD_MEMMOVE 2014-06-28 06:05:24 +05:30
gnu Silence a missing-noreturn warning for _Unwind_Resume. 2014-05-09 10:06:20 -07:00
hppa Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
i386 Fix yn overflow handling in non-default rounding modes (bug 16561, bug 16562). 2014-06-27 14:52:13 +00:00
ia64 Remove relro configure test. 2014-06-27 16:51:22 +00:00
ieee754 Fix ldbl-128 powl sign of result in overflow / underflow cases (bug 17097). 2014-06-29 11:49:08 +00:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
mach Remove second argument from TLS_INIT_TP macro 2014-05-27 14:48:46 +02:00
microblaze Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
mips Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
nptl Remove configure tests for assembler CFI support. 2014-06-26 17:33:32 +00:00
posix sysdeps/posix/tempname.c: Merge from gnulib 2014-06-25 10:52:51 +01:00
powerpc Remove shlib-versions ABI names support. 2014-06-27 20:24:23 +00:00
pthread Use list.h in posix-timer code. 2014-06-12 14:17:14 -07:00
s390 Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
sh Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
sparc Fix Wundef warning for ELF_MACHINE_NO_RELA 2014-06-26 22:30:40 +05:30
tile Fix Wundef warning for MEMCPY_OK_FOR_FWD_MEMMOVE 2014-06-28 06:05:24 +05:30
unix MIPS: Consolidate nptl/ subdirectories under linux/... 2014-06-27 11:41:04 -07:00
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 x86: Consolidate unnecessary nptl/ subdirectories. 2014-06-24 19:17:43 -07:00
x86_64 Remove shlib-versions ABI names support. 2014-06-27 20:24:23 +00:00