From aeab19f47efb759ce5f91d5a5f352ab6d44e6b79 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Mon, 8 Feb 2021 09:39:30 -0500 Subject: [PATCH] Fix for #211 Co-authored by: @kargl --- src/e_powf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e_powf.c b/src/e_powf.c index fd78847..7256ce4 100644 --- a/src/e_powf.c +++ b/src/e_powf.c @@ -137,7 +137,7 @@ __ieee754_powf(float x, float y) /* |y| is huge */ if(iy>0x4d000000) { /* if |y| > 2**27 */ /* over/underflow if x is not close to one */ - if(ix<0x3f7ffff8) return (hy<0)? sn*huge*huge:sn*tiny*tiny; + if(ix<0x3f7ffff7) return (hy<0)? sn*huge*huge:sn*tiny*tiny; if(ix>0x3f800007) return (hy>0)? sn*huge*huge:sn*tiny*tiny; /* now |1-x| is tiny <= 2**-20, suffice to compute log(x) by x-x^2/2+x^3/3-x^4/4 */