summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/s_exp2f.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/src/s_exp2f.c')
-rw-r--r--lib/msun/src/s_exp2f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/s_exp2f.c b/lib/msun/src/s_exp2f.c
index 1b9299f..43da2f6 100644
--- a/lib/msun/src/s_exp2f.c
+++ b/lib/msun/src/s_exp2f.c
@@ -104,7 +104,7 @@ exp2f(float x)
if(ix >= 0x43000000) { /* |x| >= 128 */
if(ix >= 0x7f800000) {
if ((ix & 0x7fffff) != 0 || (hx & 0x80000000) == 0)
- return (x); /* x is NaN or +Inf */
+ return (x + x); /* x is NaN or +Inf */
else
return (0.0); /* x is -Inf */
}
OpenPOWER on IntegriCloud