Skip to content

Commit

Permalink
Fix for #211
Browse files Browse the repository at this point in the history
Co-authored by: @kargl
  • Loading branch information
ViralBShah committed Feb 8, 2021
1 parent 5449705 commit aeab19f
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<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 */
Expand Down

0 comments on commit aeab19f

Please sign in to comment.