glibc/sysdeps/ieee754/ldbl-128ibm
Joseph Myers 1a84c3d6d4 Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564).
Bug 16564 is spurious overflow of log1pl (LDBL_MAX) in FE_UPWARD mode,
resulting from log1pl adding 1 to its argument (for arguments not
close to 0), which overflows in that mode.  This patch fixes this by
avoiding adding 1 to large arguments (precisely what counts as large
depends on the floating-point format).

Tested x86_64 and x86, and spot-checked log1pl tests on mips64 and
powerpc64.

	[BZ #16564]
	* sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
	arguments with exponent 65 or above.
	* sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
	arguments 0x1p113L or above.
	* sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
	to arguments 0x1p107L or above.
	* sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
	positive arguments with exponent 65 or above.
	* math/auto-libm-test-in: Add more tests of log1p.
	* math/auto-libm-test-out: Regenerated.
2014-05-14 12:38:56 +00:00
..
e_acoshl.c Fix ldbl-128ibm acoshl inaccuracy (bug 16384). 2014-01-02 16:33:06 +00:00
e_acosl.c
e_asinl.c
e_atan2l.c
e_atanhl.c
e_coshl.c Fix ldbl-128ibm coshl spurious overflows (bug 16407). 2014-01-07 22:00:04 +00:00
e_exp10l.c
e_expl.c
e_fmodl.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
e_gammal_r.c
e_hypotl.c
e_ilogbl.c
e_j0l.c
e_j1l.c
e_jnl.c
e_lgammal_r.c 2006-01-27 Dwayne Grant McConnell <decimal@us.ibm.com> 2006-01-28 00:15:15 +00:00
e_log2l.c
e_log10l.c
e_logl.c Fix ldbl-128ibm logl inaccuracy (bug 16386). 2014-01-02 16:35:46 +00:00
e_powl.c
e_rem_pio2l.c
e_remainderl.c
e_sinhl.c
e_sqrtl.c
gamma_productl.c
ieee754.h
k_cosl.c
k_sincosl.c
k_sinl.c
k_tanl.c
ldbl2mpn.c
Makefile
math_ldbl.h Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
mpn2ldbl.c
printf_fphex.c
s_asinhl.c Fix ldbl-128ibm asinhl inaccuracy (bug 16385). 2014-01-02 16:34:24 +00:00
s_atanl.c
s_cbrtl.c
s_ceill.c
s_copysignl.c
s_cosl.c
s_cprojl.c
s_ctanhl.c
s_ctanl.c
s_erfl.c Fix erf underflow handling near 0 (bug 16516). 2014-05-14 12:34:03 +00:00
s_expm1l.c Fix ldbl-128ibm expm1l on large arguments (bug 16408). 2014-01-08 13:32:39 +00:00
s_fabsl.c
s_finitel.c
s_floorl.c
s_fmal.c
s_fpclassifyl.c
s_frexpl.c Correct IBM long double frexpl. 2014-04-16 19:33:32 +09:30
s_isinf_nsl.c
s_isinfl.c
s_isnanl.c
s_issignalingl.c
s_llrintl.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s_llroundl.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s_log1pl.c Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564). 2014-05-14 12:38:56 +00:00
s_logbl.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s_lrintl.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s_lroundl.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
s_modfl.c
s_nearbyintl.c
s_nextafterl.c Correct IBM long double nextafterl. 2014-04-02 13:46:19 +10:30
s_nexttoward.c
s_nexttowardf.c
s_remquol.c
s_rintl.c
s_roundl.c
s_scalblnl.c
s_scalbnl.c
s_signbitl.c
s_sincosl.c
s_sinl.c
s_tanhl.c
s_tanl.c
s_truncl.c PowerPC: remove wrong truncl implementation for PowerPC64 2014-01-08 08:14:48 -06:00
strtold_l.c
t_sincosl.c
w_expl.c
x2y2m1l.c