summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/s_expm1f.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/src/s_expm1f.c')
-rw-r--r--lib/msun/src/s_expm1f.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/msun/src/s_expm1f.c b/lib/msun/src/s_expm1f.c
index 6c5d3e7..483472c 100644
--- a/lib/msun/src/s_expm1f.c
+++ b/lib/msun/src/s_expm1f.c
@@ -96,9 +96,10 @@ expm1f(float x)
e = (x*(e-c)-c);
e -= hxs;
if(k== -1) return (float)0.5*(x-e)-(float)0.5;
- if(k==1)
+ if(k==1) {
if(x < (float)-0.25) return -(float)2.0*(e-(x+(float)0.5));
else return one+(float)2.0*(x-e);
+ }
if (k <= -2 || k>56) { /* suffice to return exp(x)-1 */
y = one-(e-x);
if (k == 128) y = y*2.0F*0x1p127F;
OpenPOWER on IntegriCloud