From 92221550d72bafcd322ac5ab2a951054184b7f1a Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sun, 19 Feb 2012 11:20:18 +0100 Subject: Use non-signaling floating-point comparisons in math functions. --- math/w_exp2l.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'math/w_exp2l.c') diff --git a/math/w_exp2l.c b/math/w_exp2l.c index ac8d231..442a637 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)); -- cgit v1.1