aboutsummaryrefslogtreecommitdiff
path: root/math
AgeCommit message (Collapse)AuthorFilesLines
2011-10-26Make math_force_eval accept non-addressable argumentsAndreas Schwab1-2/+3
2011-10-24Optimize accurate 64-bit routines for FMA4 on x86-64Ulrich Drepper1-1/+1
2011-10-22Merge branch 'master' of ssh://sourceware.org/git/glibcUlrich Drepper3-0/+3
2011-10-22Add branch predictions to complex math codeUlrich Drepper23-132/+77
2011-10-22Fix compilation due to __nan definesAndreas Schwab3-0/+3
2011-10-22Optimization to some complex math functionsUlrich Drepper19-255/+103
Also, change last reference to __sqrt into __sqrt to easily.
2011-10-18Use new internal libc_fe* interfaces in more functionsUlrich Drepper1-0/+8
2011-10-18Provide combined internal feholdexcept/fesetround interfaceUlrich Drepper1-0/+7
2011-10-18Start optimizing the use of the fenv interfaces in libm itselfUlrich Drepper1-0/+22
2011-10-15Optimize expUlrich Drepper3-0/+9
Add __exp*_finite optimizations and rewrite some wrappers.
2011-10-15Add parameter annotation to modfAndreas Jaeger1-2/+3
2011-10-12Optimize libmUlrich Drepper102-2753/+2418
libm is now somewhat integrated with gcc's -ffinite-math-only option and lots of the wrapper functions have been optimized.
2011-10-08Optimize use of isnan, isinf, finiteUlrich Drepper21-62/+71
2011-10-08Use private math_private.h in files in math/Ulrich Drepper128-128/+128
2011-10-07Fix remainder (NaN, 0)Andreas Jaeger4-9/+25
2011-09-09Fix jn precisionPetr Baudis1-1/+11
2011-09-08Fix lround() loses precisionPaul Pluzhnikov1-0/+1
2011-05-18Fix whitespaceUlrich Drepper1-1/+1
2011-05-18Fix typo in x86-64 powlH.J. Lu2-1/+54
2010-11-01Fix typo in comment.Erich Ritz1-1/+1
2010-10-18IEEE quad fmal fixesJakub Jelinek1-0/+15
2010-10-15Implement fmal, some fma bugfixesJakub Jelinek1-0/+25
2010-10-15Fix some more dbl-64/s_fma.c issueJakub Jelinek1-0/+10
2010-10-13Implement accurate fma.Jakub Jelinek1-1/+17
2010-10-11Correct implementation of fmaf.Jakub Jelinek3-2/+8
2010-04-08Fix whitespaces.Ulrich Drepper1-1/+1
2010-04-08Fix cproj implmentation.Ulrich Drepper4-34/+18
2010-03-03(INSERT_WORDS64): Fix argument order.David S. Miller1-1/+1
2010-02-09Avoid PLT call to fegetenv on s390Andreas Schwab1-0/+1
2009-10-27Fix range checks in coshl.Jakub Jelinek1-2/+2
2009-08-25Fix generic fdiml.Joseph Myers1-2/+2
2009-08-24Add ceil implementation for 64-bit machines.Ulrich Drepper1-0/+19
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-08-24Fix overflow handling in fdim.Ulrich Drepper3-8/+32
2009-08-24Define math_errhandling is possible.Ulrich Drepper1-2/+9
2009-07-29Add support for x86-64 fma instruction.Ulrich Drepper2-2/+6
Use it to implement fma and fmaf, if possible.
2009-05-16Remove redundant .gitignore files.Andreas Schwab1-6/+0
2009-05-15Add test for range error in expm1.Ulrich Drepper1-0/+4
2009-05-15rename each .cvsignore file to .gitignoreJim Meyering1-0/+0
2009-04-26* sysdeps/i386/fpu/s_tan.S: Set errno for ±Inf.Ulrich Drepper1-0/+6
* 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-3/+17
errno value vor pow(+-0,neg). * math/libm-test.inc (pow_test): Add tests for errno value for pole errors.
2009-04-26* math/w_fmod.c: Also handle x=±Inf as error.Ulrich Drepper4-8/+16
* math/w_fmodf.c: Likewise. * math/w_fmodl.c: Likewise. * math/libm-test.inc (fmod_test): Add tests for errno after calls for x=±Inf or y=0.
2009-04-26* sysdeps/i386/fpu/s_cos.S: Set errno for ±Inf.Ulrich Drepper1-1/+13
* 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-0/+2
for lgamma should se errno to ERANGE, not EDOM. * math/libm-test.inc (lgamma_test): Check errno for pole errors.
2008-11-012008-10-24 Joseph Myers <joseph@codesourcery.com>Ulrich Drepper1-1/+8
Ulrich Drepper <drepper@redhat.com> * math/tgmath.h (__floating_type): Use __builtin_classify_type in definition for GCC 3.1 and later.
2008-05-22Work around braindead IBM128 long double format.Ulrich Drepper1-2/+2
2008-05-11[BZ #3406]Ulrich Drepper1-0/+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-04-12* sysdeps/powerpc/fpu/fenv_libc.h: Add libm_hidden_proto forUlrich Drepper1-1/+1
__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-11[BZ4997]Ulrich Drepper1-0/+43
* sysdeps/powerpc/powerpc32/fpu/s_lround.S (__lround): Fixed erroneous result when x is +/-nextafter(+/-0.5,-/+1) i.e. all 1's in the mantissa. * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround): Likewise. Also account for when x is an odd number between 2^52 and 2^53-1. * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Likewise. * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf): Likewise. * math/libm-test.inc (lround_test, llround_test): Added test cases to detect aforementioned erroneous conditions.
2008-03-24[BZ #5857]Ulrich Drepper1-0/+9
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.
2007-10-28[BZ #2549]Ulrich Drepper1-5/+18
2006-04-14 H.J. Lu <hongjiu.lu@intel.com> [BZ #2549] * math/libm-test.inc (check_float_internal): Support denormalized return.