aboutsummaryrefslogtreecommitdiff
path: root/math/w_exp2.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_exp2.c')
-rw-r--r--math/w_exp2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/w_exp2.c b/math/w_exp2.c
index bf223265cb..7a3b0afb74 100644
--- a/math/w_exp2.c
+++ b/math/w_exp2.c
@@ -12,7 +12,8 @@ static const double u_threshold = (double) (DBL_MIN_EXP - DBL_MANT_DIG - 1);
double
__exp2 (double x)
{
- if (__builtin_expect (x <= u_threshold || x > o_threshold, 0)
+ if (__builtin_expect (islessequal (x, u_threshold)
+ || isgreater (x, o_threshold), 0)
&& _LIB_VERSION != _IEEE_ && __finite (x))
/* exp2 overflow: 44, exp2 underflow: 45 */
return __kernel_standard (x, x, 44 + (x <= o_threshold));