Skip to content

Commit a090d3e

Browse files
authored
Fix powf: #212 (comment)
1 parent f052f42 commit a090d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/e_powf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ __ieee754_powf(float x, float y)
137137
/* |y| is huge */
138138
if(iy>0x4d000000) { /* if |y| > 2**27 */
139139
/* over/underflow if x is not close to one */
140-
if(ix<0x3f7ffff7) return (hy<0)? sn*huge*huge:sn*tiny*tiny;
140+
if(ix<0x3f7ffff6) return (hy<0)? sn*huge*huge:sn*tiny*tiny;
141141
if(ix>0x3f800007) return (hy>0)? sn*huge*huge:sn*tiny*tiny;
142142
/* now |1-x| is tiny <= 2**-20, suffice to compute
143143
log(x) by x-x^2/2+x^3/3-x^4/4 */

0 commit comments

Comments
 (0)