summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754
AgeCommit message (Collapse)AuthorFilesLines
2011-10-15Optimize expUlrich Drepper7-154/+122
Add __exp*_finite optimizations and rewrite some wrappers.
2011-10-12Optimize libmUlrich Drepper94-2638/+1459
libm is now somewhat integrated with gcc's -ffinite-math-only option and lots of the wrapper functions have been optimized.
2011-10-10Implement __isinf_nsl for IBM long doubleAndreas Schwab1-0/+16
2011-10-08Fix some nit warnings.Roland McGrath1-1/+1
2011-10-08Optimize use of isnan, isinf, finiteUlrich Drepper11-1/+104
2011-09-15finite for 64-bit platformsUlrich Drepper1-0/+32
2011-09-12Optimize logb code for 64-bit machinesUlrich Drepper1-0/+44
2011-09-09Fix jn precisionPetr Baudis5-5/+50
2011-09-08Fix lround() loses precisionPaul Pluzhnikov1-1/+1
2011-09-07Check for finite/infinity parms in IBM Long Double 128 fmal( )Ulrich Drepper1-0/+39
This patch addresses some IBM Long Double 128 fmal () test-ldouble.out and test-ildoubl.out failures. If the ‘x’ and ‘y’ parameters are finite values and ‘z’ is infinity, the result of fmal () should be ‘z’ not NaN. Conflicts: ChangeLog
2011-08-04Fix up __kernel_rem_pio2 for FLT_EVAL_METHOD != 0 architecturesJakub Jelinek1-6/+12
2010-11-22ldbl-128 fmal compile fixJakub Jelinek1-1/+1
2010-11-10Fix comparison in sqrtl for IBM long double 128.Luis Machado1-2/+2
2010-10-18IEEE quad fmal fixesJakub Jelinek1-2/+4
2010-10-15Implement fmal, some fma bugfixesJakub Jelinek5-3/+467
2010-10-15Fix some more dbl-64/s_fma.c issueJakub Jelinek1-15/+88
2010-10-13Implement accurate fma.Jakub Jelinek5-2/+268
2010-10-11Correct implementation of fmaf.Jakub Jelinek1-0/+50
2010-04-08Fix cproj implmentation.Ulrich Drepper1-17/+5
2010-01-16sysdeps/ieee754/ldbl-128/ fixesJakub Jelinek5-15/+13
2009-10-28Readd definition of __expl in ldbl-128Joseph S. Myers1-0/+1
2009-10-19Correct errno handling in expm1.Andreas Schwab3-0/+3
2009-09-15configure tweaks, support $libc_add_on_config_subdirsRoland McGrath1-27/+24
2009-08-26Add isinf optimized for 64-bit.Ulrich Drepper1-0/+30
2009-08-26Optimized isnan for 64-bit machines.Ulrich Drepper1-0/+39
2009-08-25Make llround an alias for lround on 64-bit machines.Ulrich Drepper2-0/+14
2009-08-25Optimized nearbyint for 64-bit.Ulrich Drepper1-0/+86
2009-08-25Optimized rint implementation for x86-64.Ulrich Drepper1-0/+79
2009-08-25Add 64-bit optimized s_round.Ulrich Drepper1-0/+77
2009-08-25Optimize out duplicated scalbln code for x86-64.Ulrich Drepper1-6/+6
2009-08-25Add 64-bit optimized scalbln.Ulrich Drepper1-0/+68
2009-08-25Add 64-bit optimized version lround.Ulrich Drepper1-0/+67
2009-08-2564-bit optimized implementation of trunc.Ulrich Drepper1-0/+56
2009-08-24Add ceil implementation for 64-bit machines.Ulrich Drepper1-0/+67
On 64-bit machines we should not split doubles into two 32 bit integer and handle the words separately. We have wide registers. This patch implements a 64-bit ceil version. Ideally all other functions will be converted over time.
2009-05-29Fix errno for boundary conditions in 128-bit long double.Ulrich Drepper4-4/+32
Similar to the changes which went already in for the other formats, follow POSIX rules for errno.
2009-05-22Fix errno for IBM long double.Andreas Schwab4-7/+22
After the last addition to the math test suite PPC routines haven't been adjusted so far.
2009-04-27* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.Ulrich Drepper2-2/+10
* sysdeps/ieee754/flt-32/s_expm1f.c: Likewise. * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
2009-04-27* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errors inUlrich Drepper1-1/+1
atanh should set ERANGE.
2009-04-26* sysdeps/ieee754/dbl-64/s_tan.c (tan): Fix -Wsequence-point warnings.Ulrich Drepper1-7/+14
2009-04-26* sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.Ulrich Drepper2-4/+15
* sysdeps/i386/fpu/s_tanf.S: Likewise. * sysdeps/i386/fpu/s_tanl.S: Likewise. * sysdeps/ieee754/dbl-64/s_tan.c: Likewise. * sysdeps/ieee754/flt-32/s_tanf.c: Likewise. * sysdeps/x86_64/fpu/s_tanl.S: Likewise. * math/libm-test.inc: Add tests for errno after tan calls with ±Inf.
2009-04-26* sysdeps/ieee754/k_standard.c (__kernel_standard): Use correctUlrich Drepper1-2/+2
errno value vor pow(+-0,neg). * math/libm-test.inc (pow_test): Add tests for errno value for pole errors.
2009-04-26* sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.Ulrich Drepper5-9/+38
* sysdeps/i386/fpu/s_cosf.S: Likewise. * sysdeps/i386/fpu/s_cosl.S: Likewise. * sysdeps/i386/fpu/s_sin.S: Likewise. * sysdeps/i386/fpu/s_sinf.S: Likewise. * sysdeps/i386/fpu/s_sinl.S: Likewise. * sysdeps/ieee754/dbl-64/s_sin.c: Likewise. * sysdeps/ieee754/flt-32/s_cosf.c: Likewise. * sysdeps/ieee754/flt-32/s_sinf.c: Likewise. * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise. * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise. * sysdeps/x86_64/fpu/s_cosl.S: Likewise. * sysdeps/x86_64/fpu/s_sinl.S: Likewise. * math/libm-test.inc: Add tests for errno after sin/cos calls with ±Inf.
2009-04-25* sysdeps/ieee754/k_standard.c (__kernel_standard): Pole errorsUlrich Drepper1-2/+2
for lgamma should se errno to ERANGE, not EDOM. * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2008-05-11[BZ #3406]Ulrich Drepper1-1/+1
2008-02-11 Joseph Myers <joseph@codesourcery.com> [BZ #3406] * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Correct value. * math/libm-test.inc (exp_test): Test 88.72269439697265625.
2008-05-10* sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee751_j0l): Use __finitel.Ulrich Drepper4-13/+6
(__ieee754_y0l): Likewise. * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise. (__ieee754_y1l): Likewise. * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use __ldexpl. * sysdeps/ieee754/ldbl-128/s_log1pl.c: Kill bogus prototypes for frexpl and ldexpl. math_private.h provides them and the latter is not even used. (__log1pl): Use __frexpl.
2008-04-12* sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): UseUlrich Drepper1-4/+4
__nextafter instead of nextafter to avoid local PLT.
2008-04-12* sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto forUlrich Drepper5-30/+20
__fe_nomask_env. * sysdeps/powerpc/fpu/fe_nomask.c: Add libm_hidden_def. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise. * sysdeps/powerpc/bits/fenv.h: Make safe for C++. * sysdeps/unix/sysv/linux/powerpc/bits/mathinline.h: New file. * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Rename function from fegetexcept and make old name weak alias. * include/fenv.h: Declare __fegetexcept. * sysdeps/powerpc/fpu/fedisblxcpt.c: Use __fegetexcept instead of fegetexcept. * sysdeps/powerpc/fpu/feenablxcpt.c: Likewise. * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Avoid call to fetestexcept. * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Use __frexpl instead of frexpl to avoid local PLT. * math/s_significandl.c (__significandl): Use __ilogbl instead of ilogbl to avoid local PLT. * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __ldexpl instead of ldexpl to avoid local PLT. * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use __roundl not roundl to avoid local PLT. * sysdeps/ieee754/ldbl-128/e_j0l.c: Use function names which avoid local PLTs. Use __sincosl instead of separate sinl and cosl calls. * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2008-04-10[BZ #4407]Ulrich Drepper1-0/+6
2008-02-12 Pete Eberlein <eberlein@us.ibm.com> [BZ #4407] * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Preserve sign in signgamp when x is zero.
2008-03-24[BZ #5857]Ulrich Drepper2-3/+17
2008-03-09 Andreas Jaeger <aj@suse.de> [BZ #5857] * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Handle j0==18. * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Likewise. Patch by Mark Elliott <mark.h.elliott@lmco.com>. * math/libm-test.inc (nearbyint_test): Add new test cases from #5857. (rint_test): Likewise.
2008-03-10[BZ #5753] Andreas Jaeger1-4/+4
* sysdeps/ia64/ieee754.h: Use protected namespace __BIG_ENDIAN/__LITTLE_ENDIAN. * sysdeps/ieee754/ieee754.h: Likewise. Patch by Aurelien Jarno <aurelien@aurel32.net>.