diff options
Diffstat (limited to 'lib/msun/ld80/s_exp2l.c')
-rw-r--r-- | lib/msun/ld80/s_exp2l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/ld80/s_exp2l.c b/lib/msun/ld80/s_exp2l.c index 8a0dbe2..14dfc1d 100644 --- a/lib/msun/ld80/s_exp2l.c +++ b/lib/msun/ld80/s_exp2l.c @@ -226,7 +226,7 @@ exp2l(long double x) if (ix >= BIAS + 14) { /* |x| >= 16384 or x is NaN */ if (ix == BIAS + LDBL_MAX_EXP) { if (u.xbits.man != 1ULL << 63 || (hx & 0x8000) == 0) - return (x); /* x is NaN or +Inf */ + return (x + x); /* x is +Inf or NaN */ else return (0.0); /* x is -Inf */ } |