summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/flt-32
AgeCommit message (Collapse)AuthorFilesLines
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae19-19/+19
2013-12-06PowerPC: multiarch finite/finitef for PowerPC32Adhemerval Zanella1-1/+6
2013-12-03Fix erfc errno setting on underflow (bug 6786).Joseph Myers1-2/+17
2013-09-03Fix lgammaf spurious underflow (bug 15427).Joseph Myers1-2/+2
2013-09-02Fix spurious jnf underflows (bug 14155).Joseph Myers1-2/+2
2013-06-06Fix leading whitespaces.Ondrej Bilka2-8/+8
2013-06-05Remove trailing whitespace.Joseph Myers10-25/+25
2013-05-19Fix nearbyint scheduling of arithmetic past fesetenv (bug 15490).Joseph Myers1-0/+2
2013-05-08Improve tgamma accuracy (bugs 2546, 2560, 5159, 15426).Joseph Myers1-5/+129
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge1-0/+42
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers18-19/+18
2012-11-18Correct tinyness handling in long-double and float y0/y1.David S. Miller2-2/+2
With help from Joseph Myers. * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness cutoff to 2**-13. * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness cutoff to 2**-25. * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant. ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very small. * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise. * math/libm-test.inc (y0_test): New tests. (y1_test): New tests. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Update. * sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-11-07Fix spurious underflows from pow with results close to 1 (bug 14811).Joseph Myers1-0/+4
2012-09-25Add optimized sincosf for SSE2 for x86 and x86-64Liubov Dmitrieva1-1/+9
2012-09-03Add optimized sinf and cosf routines for x86 and x86-64Liubov Dmitrieva2-2/+20
* sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines): Add s_sinf-sse2, s_conf-sse2. * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file. * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file. * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file. * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file. * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros for using routine as __sinf_ia32. Use macro for function declaration and weak_alias. * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros for using routine as __cosf_ia32. Use macro for function declaration and weak_alias. * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright. * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright. * sysdeps/x86_64/fpu/s_sinf.S: New file. * sysdeps/x86_64/fpu/s_cosf.S: New file. * sysdeps/x86_64/fpu/libm-test-ulps: Update. * math/libm-test.inc (cos_test): Add more test cases. (sin_test): Likewise. (sincos_test): Likewise.
2012-07-25Set up errno properly for yn.Marek Polacek1-0/+4
2012-07-06Fix tanf underflow close to pi/4 (bug 14154).Joseph Myers1-0/+2
2012-07-03Fix float range reduction problems (bug 14283).Joseph Myers1-14/+23
2012-05-26Optimize handling of denormals in logb/logbf/logblAndreas Schwab1-2/+1
2012-05-25Fix acosf underflow (bug 14153).Joseph Myers1-1/+1
2012-05-10Fix for logb/logbf/logbl (bugs 13954/13955/13956)Adhemerval Zanella1-14/+18
POSIX 2008 states that if the input for 'logb[f|l]' is a subnormal number it should be treated as if it were normalized. This means the implementation should calculate the log2 of the mantissa and add it to the subnormal exponent (-126 for float and -1022 for double and IBM long double). This patch takes care of that.
2012-05-05Fix missing exceptions from exp (bugs 13787, 13922, 14036).Joseph Myers1-16/+5
2012-04-18Remove useless __ilogb*_finite aliasesAndreas Schwab1-1/+0
2012-04-17Fix ilogb exception and errno (bug 6794)Adhemerval Zanella1-2/+2
[BZ #6794] Following Joseph comments about bug 6794, here is a proposed fix. It turned out to be a large fix mainly because I had to move some file along to follow libm files/names conventions. Basically I have added wrappers (w_ilogb.c, w_ilogbf.c, w_ilogbl.c) that now calls the symbol '__ieee754_ilogb'. The wrappers checks for '__ieee754_ilogb' output and set the errno and raise exceptions as expected. The '__ieee754_ilogb' is implemented in sysdeps. I have moved the 's_ilogb[f|l]' files to e_ilogb[f|l] and renamed the '__ilogb[f|l]' to '__ieee754_ilogb[f|l]'. I also found out a bug in i386 and x86-64 assembly coded ilogb implementation where it raises a FE_DIVBYZERO when argument is '0.0'. I corrected this issue as well. Finally I added the errno and FE_INVALID tests for 0.0, NaN and +-InF argument. Tested on i386, x86-64, ppc32 and ppc64.
2012-03-19Create and use SET_RESTORE_ROUND{,_NOEX,_53BIT}{,F,L}.Richard Henderson2-70/+68
2012-03-19Make inline __isnan, __isinf_ns, __finite generic.Richard Henderson1-0/+35
For code generation to stay identical on x86_64, this requires that we define the fp word manipulation macros before including the generic header.
2012-03-13Fix hypotf overflow/underflow by using double precision instead of scaling.David S. Miller1-52/+25
[BZ #13840] * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use double-precision for the calculation instead of scaling.
2012-03-09Use <> for math.h and math_private.h everywhere.Richard Henderson61-111/+111
Entire tree edited via find | grep | sed.
2012-03-02Fix scalbn, scalbln integer overflow.Joseph Myers2-6/+10
2012-03-01Improve erfc accuracy.Joseph Myers1-1/+1
2012-02-22Fix nearbyintf rounding.Joseph Myers1-12/+0
2012-02-22Fix rintf rounding.Joseph Myers1-12/+0
2012-02-19Use non-signaling floating-point comparisons in math functions.Aurelien Jarno2-7/+7
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert19-56/+38
2012-01-27Remove __STDC__ conditionals from libm.Joseph Myers21-209/+23
2012-01-11Optimize scalblnUlrich Drepper1-25/+13
2012-01-10Optimize s_modfUlrich Drepper1-16/+4
2012-01-10Optimize ldexp and scalbnUlrich Drepper1-25/+13
2011-10-26Fix uses of math_force_evalAndreas Schwab2-3/+3
2011-10-25Use math_force_eval in more placesUlrich Drepper7-97/+65
2011-10-22Optimization to some complex math functionsUlrich Drepper1-1/+1
Also, change last reference to __sqrt into __sqrt to easily.
2011-10-18Use new internal libc_fe* interfaces in more functionsUlrich Drepper3-35/+17
2011-10-16Use rounds{s,d} for x86 rint, ceil, floorUlrich Drepper3-55/+26
2011-10-15Optimize expUlrich Drepper2-55/+42
Add __exp*_finite optimizations and rewrite some wrappers.
2011-10-12Optimize libmUlrich Drepper22-749/+377
libm is now somewhat integrated with gcc's -ffinite-math-only option and lots of the wrapper functions have been optimized.
2011-10-08Fix some nit warnings.Roland McGrath1-1/+1
2011-10-08Optimize use of isnan, isinf, finiteUlrich Drepper3-1/+23
2011-09-09Fix jn precisionPetr Baudis1-1/+10
2009-10-19Correct errno handling in expm1.Andreas Schwab1-0/+1
2009-04-27* sysdeps/ieee754/dbl-64/s_expm1.c: Set errno for overflow.Ulrich Drepper1-1/+5
* sysdeps/ieee754/flt-32/s_expm1f.c: Likewise. * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.