Skip to content

Commit

Permalink
Fix powf: #212 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralBShah authored Sep 7, 2021
1 parent f052f42 commit a090d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e_powf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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<0x3f7ffff7) return (hy<0)? sn*huge*huge:sn*tiny*tiny;
if(ix<0x3f7ffff6) 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 */
Expand Down

0 comments on commit a090d3e

Please sign in to comment.