aboutsummaryrefslogtreecommitdiff
path: root/math/w_exp2l.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_exp2l.c')
-rw-r--r--math/w_exp2l.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/math/w_exp2l.c b/math/w_exp2l.c
index ac8d231e2c..442a637347 100644
--- a/math/w_exp2l.c
+++ b/math/w_exp2l.c
@@ -13,7 +13,8 @@ static const long double u_threshold
long double
__exp2l (long 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_ && __finitel (x))
/* exp2 overflow: 244, exp2 underflow: 245 */
return __kernel_standard (x, x, 244 + (x <= o_threshold));