diff options
Diffstat (limited to 'lib/msun/src/s_expm1.c')
-rw-r--r-- | lib/msun/src/s_expm1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/msun/src/s_expm1.c b/lib/msun/src/s_expm1.c index 4da712d..3de7bfb 100644 --- a/lib/msun/src/s_expm1.c +++ b/lib/msun/src/s_expm1.c @@ -190,9 +190,10 @@ expm1(double x) e = (x*(e-c)-c); e -= hxs; if(k== -1) return 0.5*(x-e)-0.5; - if(k==1) + if(k==1) { if(x < -0.25) return -2.0*(e-(x+0.5)); else return one+2.0*(x-e); + } if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */ y = one-(e-x); if (k == 1024) y = y*2.0*0x1p1023; |