Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright notices with scripts/update-copyrights. | Joseph Myers | 2013-01-02 | 85 | -86/+85 |
| | |||||
* | Fix values in __mpexp_twomm1 | Siddhesh Poyarekar | 2013-01-02 | 1 | -8/+8 |
| | |||||
* | Split mantissa calculation loop and add branch prediction | Siddhesh Poyarekar | 2013-01-02 | 1 | -24/+43 |
| | |||||
* | Add assert for potential access beyond array bounds in m1np | Siddhesh Poyarekar | 2013-01-02 | 1 | -4/+17 |
| | | | | | | | | | | | The mpexp code has an access into m1np: for (i=n-1; i>0; i--,n--) { if (m1np[i][p]+m2>0) break; } which could break for p >= 18 or i >= 7. Fortunately this code is never called due to the way the exp function is implemented since values having exponent less than -55 return 1.0. Make sure that if it gets called in future, it is trapped. | ||||
* | Move more constants into static variables | Siddhesh Poyarekar | 2013-01-02 | 4 | -22/+8 |
| | | | | Code cleanup. | ||||
* | Add script to update copyright notices and reformat some to facilitate its use. | Joseph Myers | 2013-01-01 | 23 | -23/+23 |
| | |||||
* | Favour normal numbers | Siddhesh Poyarekar | 2012-12-31 | 1 | -4/+5 |
| | |||||
* | Demystify the magic number 134217729.0 | Siddhesh Poyarekar | 2012-12-29 | 3 | -8/+10 |
| | | | | | The number 134217729.0 gets used in various places in e_pow.c but there is no explanation of what that number is. Add that explanation. | ||||
* | Remove unnecessary variable mptwoim1 | Siddhesh Poyarekar | 2012-12-28 | 2 | -27/+3 |
| | | | | Code cleanup. | ||||
* | Replace more constants with their values | Siddhesh Poyarekar | 2012-12-28 | 5 | -97/+61 |
| | | | | Code cleanup. | ||||
* | Replace constants with preprocessor defines | Siddhesh Poyarekar | 2012-12-28 | 5 | -120/+28 |
| | | | | libm Code cleanup. | ||||
* | Remove redundant __mpexp_nn | Siddhesh Poyarekar | 2012-12-27 | 2 | -28/+2 |
| | | | | It's an array that stores integral float values of the offset. | ||||
* | Move mpone out to a global const | Siddhesh Poyarekar | 2012-12-27 | 7 | -68/+11 |
| | | | | Code cleanup. | ||||
* | Fix spurious underflows from pow with results close to 1 (bug 14811). | Joseph Myers | 2012-11-07 | 1 | -0/+4 |
| | |||||
* | Fix fma underflows with small x * y (bug 14793). | Joseph Myers | 2012-11-06 | 1 | -18/+27 |
| | |||||
* | Fix fma overflow results outside round-to-nearest mode (bug 14797). | Joseph Myers | 2012-11-04 | 1 | -4/+5 |
| | |||||
* | Make fma use of Dekker and Knuth algorithms use round-to-nearest (bug 14796). | Joseph Myers | 2012-11-03 | 1 | -2/+16 |
| | |||||
* | Fix fma (a, b, c) for small a * b (bugs 14784, 14785). | Joseph Myers | 2012-11-01 | 1 | -4/+32 |
| | |||||
* | Fix fma underflow exceptions in after-rounding edge cases. | Joseph Myers | 2012-10-31 | 1 | -0/+12 |
| | |||||
* | Fix fma missing underflows and bad results for some subnormal results (bugs ↵ | Joseph Myers | 2012-10-30 | 1 | -14/+8 |
| | | | | 14152, 14783). | ||||
* | Fix sign of inexact zero return from fma (bug 14645). | Joseph Myers | 2012-10-01 | 1 | -0/+5 |
| | |||||
* | Fix sign of exact zero return from fma (bug 14638). | Joseph Myers | 2012-09-29 | 2 | -0/+12 |
| | |||||
* | Fix inaccuracy of clog, clog10 near |z| = 1 (bug 13629). | Joseph Myers | 2012-09-25 | 2 | -0/+143 |
| | |||||
* | Set up errno properly for yn. | Marek Polacek | 2012-07-25 | 1 | -0/+4 |
| | |||||
* | Fix wordsize-64 cosh regression (bug 14273). | Joseph Myers | 2012-06-21 | 1 | -0/+1 |
| | |||||
* | Fix pow (0.0, -Inf) (bug 14241). | Joseph Myers | 2012-06-15 | 1 | -2/+2 |
| | |||||
* | Fix fmod for subnormals (bug 14048). | Joseph Myers | 2012-06-01 | 1 | -2/+2 |
| | |||||
* | Ensure additions are not scheduled after fetestexcept in fmaf and fmal. | Joseph Myers | 2012-06-01 | 1 | -1/+3 |
| | |||||
* | Add a barrier in the double fma implementation. | Aurelien Jarno | 2012-06-01 | 1 | -1/+3 |
| | |||||
* | Optimize handling of denormals in logb/logbf/logbl | Andreas Schwab | 2012-05-26 | 2 | -6/+8 |
| | |||||
* | Log2 and log10 for wordsize-64. | Adhemerval Zanella | 2012-05-15 | 4 | -82/+305 |
| | | | | This patch also fixes indentation on default dbl-64 code. | ||||
* | Use __builtin_clzll on int64 in __logb | H.J. Lu | 2012-05-14 | 1 | -1/+1 |
| | |||||
* | Fix for logb/logbf/logbl (bugs 13954/13955/13956) | Adhemerval Zanella | 2012-05-10 | 2 | -20/+30 |
| | | | | | | | | 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. | ||||
* | Fix exp10 inaccuracy and exceptions (bugs 13884, 13914). | Joseph Myers | 2012-05-06 | 1 | -0/+48 |
| | |||||
* | Fix missing exceptions from exp (bugs 13787, 13922, 14036). | Joseph Myers | 2012-05-05 | 1 | -16/+5 |
| | |||||
* | Remove useless __ilogb*_finite aliases | Andreas Schwab | 2012-04-18 | 1 | -1/+0 |
| | |||||
* | Fix ilogb exception and errno (bug 6794) | Adhemerval Zanella | 2012-04-17 | 1 | -6/+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. | ||||
* | Fix missing overflow exceptions from pow (bug 13873). | Joseph Myers | 2012-04-09 | 1 | -2/+3 |
| | |||||
* | Use __kernel_standard instead of __kernel_standard_f in exp wrapper (bug 13705). | Aurelien Jarno | 2012-04-08 | 1 | -2/+2 |
| | |||||
* | Disable use of FMA instructions in branred | Andreas Schwab | 2012-03-21 | 1 | -0/+4 |
| | |||||
* | Fix pow of zero and infinity to large powers. | Joseph Myers | 2012-03-21 | 1 | -1/+1 |
| | |||||
* | Fix atan2 spurious exceptions (bug 11451). | Joseph Myers | 2012-03-19 | 1 | -1/+8 |
| | |||||
* | Create and use libc_feupdateenv_test. | Richard Henderson | 2012-03-19 | 2 | -15/+22 |
| | | | | | We can reduce the number of STMXCSR, and often we can avoid the call to __feraiseexcept. | ||||
* | Create and use SET_RESTORE_ROUND{,_NOEX,_53BIT}{,F,L}. | Richard Henderson | 2012-03-19 | 5 | -64/+53 |
| | |||||
* | Make inline __isnan, __isinf_ns, __finite generic. | Richard Henderson | 2012-03-19 | 1 | -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. | ||||
* | Make lround the alias of llround for wordsize-64 | H.J. Lu | 2012-03-16 | 2 | -80/+80 |
| | |||||
* | Fix tan, tanl for large inputs. | Joseph Myers | 2012-03-16 | 1 | -2/+2 |
| | |||||
* | Implement ldbl-96 sinl / cosl / sincosl (bug 13851). | Joseph Myers | 2012-03-16 | 1 | -7/+10 |
| | |||||
* | Implement and use libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit | Andreas Jaeger | 2012-03-14 | 1 | -5/+5 |
| | | | | so that double arithmetic in s_sin is done in 53 bit (without extend i386 double precision) | ||||
* | Clean up dbl-64 rint, nearbyint. | Joseph Myers | 2012-03-13 | 4 | -84/+6 |
| |