mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
a84e78c8b3
This patch fixes incorrect results from catan and catanh of certain special inputs in round-downward mode (bug 16799), and incorrect results of __ieee754_logf (+/-0) in round-downward mode (bug 16800) that show up through catan/catanh when tested in all rounding modes, but not directly in the testing for logf because the bug gets hidden by the wrappers. Both bugs involve a zero that should be +0 being -0 instead: one computed as (1-x)*(1+x) in the catan/catanh case, and one as (x-x) in the logf case. The fixes ensure positive zero is used. Testing of catan and catanh in all rounding modes is duly enabled. I expect there are various other bugs in special cases in __ieee754_* functions that are normally hidden by the wrappers but would show up for testing with -lieee (or in future with -fno-math-errno if we replace -lieee and _LIB_VERSION with compile-time redirection to new *_noerrno symbol names). Tested x86_64 and x86 and ulps updated accordingly. [BZ #16799] [BZ #16800] * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2 with 0 numerator. * math/s_catanf.c (__catanf): Likewise. * math/s_catanh.c (__catanh): Likewise. * math/s_catanhf.c (__catanhf): Likewise. * math/s_catanhl.c (__catanhl): Likewise. * math/s_catanl.c (__catanl): Likewise. * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide by positive zero when computing -Inf result. * math/libm-test.inc (catan_test): Use ALL_RM_TEST. (catanh_test): Likewise. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise. |
||
---|---|---|
.. | ||
doasin.c | ||
e_acos.S | ||
e_acosf.S | ||
e_acosh.S | ||
e_acoshf.S | ||
e_acoshl.S | ||
e_acosl.c | ||
e_asin.S | ||
e_asinf.S | ||
e_atan2.S | ||
e_atan2f.S | ||
e_atan2l.c | ||
e_atanh.S | ||
e_atanhf.S | ||
e_atanhl.S | ||
e_exp2.S | ||
e_exp2f.S | ||
e_exp2l.S | ||
e_exp10.S | ||
e_exp10f.S | ||
e_exp10l.S | ||
e_exp.S | ||
e_expf.S | ||
e_expl.S | ||
e_fmod.S | ||
e_fmodf.S | ||
e_fmodl.c | ||
e_hypot.S | ||
e_hypotf.S | ||
e_ilogb.S | ||
e_ilogbf.S | ||
e_ilogbl.S | ||
e_log2.S | ||
e_log2f.S | ||
e_log2l.S | ||
e_log10.S | ||
e_log10f.S | ||
e_log10l.S | ||
e_log.S | ||
e_logf.S | ||
e_logl.S | ||
e_pow.S | ||
e_powf.S | ||
e_powl.S | ||
e_rem_pio2.c | ||
e_remainder.S | ||
e_remainderf.S | ||
e_remainderl.S | ||
e_scalb.S | ||
e_scalbf.S | ||
e_scalbl.S | ||
e_sqrt.S | ||
e_sqrtf.S | ||
e_sqrtl.c | ||
fclrexcpt.c | ||
fedisblxcpt.c | ||
feenablxcpt.c | ||
fegetenv.c | ||
fegetexcept.c | ||
fegetround.c | ||
feholdexcpt.c | ||
fenv_private.h | ||
fesetenv.c | ||
fesetround.c | ||
feupdateenv.c | ||
fgetexcptflg.c | ||
fraiseexcpt.c | ||
fsetexcptflg.c | ||
ftestexcept.c | ||
halfulp.c | ||
Implies | ||
k_rem_pio2l.c | ||
libm-test-ulps | ||
math_private.h | ||
math-tests.h | ||
mpatan2.c | ||
mpatan.c | ||
mpexp.c | ||
mplog.c | ||
mpsqrt.c | ||
s_asinh.S | ||
s_asinhf.S | ||
s_asinhl.S | ||
s_atan.S | ||
s_atanf.S | ||
s_atanl.c | ||
s_cbrt.S | ||
s_cbrtf.S | ||
s_cbrtl.S | ||
s_ceil.S | ||
s_ceilf.S | ||
s_ceill.S | ||
s_copysign.S | ||
s_copysignf.S | ||
s_copysignl.S | ||
s_expm1.S | ||
s_expm1f.S | ||
s_expm1l.S | ||
s_fabs.S | ||
s_fabsf.S | ||
s_fabsl.S | ||
s_fdim.S | ||
s_fdimf.S | ||
s_fdiml.S | ||
s_finite.S | ||
s_finitef.S | ||
s_finitel.S | ||
s_floor.S | ||
s_floorf.S | ||
s_floorl.S | ||
s_fmax.S | ||
s_fmaxf.S | ||
s_fmaxl.S | ||
s_fmin.S | ||
s_fminf.S | ||
s_fminl.S | ||
s_fpclassifyl.c | ||
s_frexp.S | ||
s_frexpf.S | ||
s_frexpl.S | ||
s_isinfl.c | ||
s_isnanl.c | ||
s_llrint.S | ||
s_llrintf.S | ||
s_llrintl.S | ||
s_log1p.S | ||
s_log1pf.S | ||
s_log1pl.S | ||
s_logb.S | ||
s_logbf.S | ||
s_logbl.c | ||
s_lrint.S | ||
s_lrintf.S | ||
s_lrintl.S | ||
s_nearbyint.S | ||
s_nearbyintf.S | ||
s_nearbyintl.S | ||
s_nextafterl.c | ||
s_nexttoward.c | ||
s_nexttowardf.c | ||
s_remquo.S | ||
s_remquof.S | ||
s_remquol.S | ||
s_rint.S | ||
s_rintf.S | ||
s_rintl.c | ||
s_scalbln.c | ||
s_scalblnf.c | ||
s_scalblnl.c | ||
s_scalbn.S | ||
s_scalbnf.S | ||
s_scalbnl.S | ||
s_significand.S | ||
s_significandf.S | ||
s_significandl.c | ||
s_trunc.S | ||
s_truncf.S | ||
s_truncl.S | ||
slowexp.c | ||
slowpow.c | ||
t_exp.c | ||
Versions | ||
w_sqrt.c |