diff options
| author | Steve Kargl <kargl@FreeBSD.org> | 2014-12-05 19:00:55 +0000 |
|---|---|---|
| committer | Steve Kargl <kargl@FreeBSD.org> | 2014-12-05 19:00:55 +0000 |
| commit | 2656e946c8be25594fdb440e03bad70f04a7a2e6 (patch) | |
| tree | b43e5d67a686939b0fe7a743e1d34c27c4687781 /lib | |
| parent | 26f96d922b5f02131bfd2e9f13664fd20f4252b6 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/msun/src/e_j0.c | 2 | ||||
| -rw-r--r-- | lib/msun/src/e_j0f.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/msun/src/e_j0.c b/lib/msun/src/e_j0.c index 8320f25561bbe..a1ac7c700def2 100644 --- a/lib/msun/src/e_j0.c +++ b/lib/msun/src/e_j0.c @@ -115,7 +115,7 @@ __ieee754_j0(double x) if(ix<0x3f200000) { /* |x| < 2**-13 */ if(huge+x>one) { /* raise inexact if x != 0 */ if(ix<0x3e400000) return one; /* |x|<2**-27 */ - else return one - 0.25*x*x; + else return one - x*x/4; } } z = x*x; diff --git a/lib/msun/src/e_j0f.c b/lib/msun/src/e_j0f.c index 0a5bec9c133ff..78f6f6518d1f8 100644 --- a/lib/msun/src/e_j0f.c +++ b/lib/msun/src/e_j0f.c @@ -69,10 +69,10 @@ __ieee754_j0f(float x) } return z; } - if(ix<0x39000000) { /* |x| < 2**-13 */ + if(ix<0x3c000000) { /* |x| < 2**-7 */ if(huge+x>one) { /* raise inexact if x != 0 */ - if(ix<0x32000000) return one; /* |x|<2**-27 */ - else return one - (float)0.25*x*x; + if(ix<0x39800000) return one; /* |x|<2**-12 */ + else return one - x*x/4; } } z = x*x; |
