File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,8 @@ _NAME_64(expm1)(__float64 x)
185185 }
186186 if (x > o_threshold ) return __math_oflow (0 ); /* overflow */
187187 }
188- if (xsb != 0 ) { /* x < -56*ln2, return -1.0 with inexact */
189- if (x + tiny < _F_64 (0.0 )) /* raise inexact */
190- return tiny - one ; /* return -1 */
191- }
188+ if (xsb != 0 ) /* x < -56*ln2, return -1.0 with inexact */
189+ return __math_inexact64 (tiny - one ); /* return -1 */
192190 }
193191
194192 /* argument reduction */
Original file line number Diff line number Diff line change @@ -53,10 +53,8 @@ float expm1f(float x)
5353 return (xsb == 0 )? x :-1.0f ;/* exp(+-inf)={inf,-1} */
5454 if (xsb == 0 && hx > FLT_UWORD_LOG_MAX ) /* if x>=o_threshold */
5555 return __math_oflowf (0 ); /* overflow */
56- if (xsb != 0 ) { /* x < -27*ln2, return -1.0 with inexact */
57- if (x + tiny < 0.0f ) /* raise inexact */
58- return tiny - one ; /* return -1 */
59- }
56+ if (xsb != 0 ) /* x < -27*ln2, return -1.0 with inexact */
57+ return __math_inexactf (tiny - one ); /* return -1 */
6058 }
6159
6260 /* argument reduction */
You can’t perform that action at this time.
0 commit comments