Re: [PATCH 4/5] msvcr120: Don't set errno in expm1.
18 Jul
2017
18 Jul
'17
1:03 p.m.
On 07/18/17 06:33, Alex Henrie wrote:
@@ -2421,7 +2421,6 @@ double CDECL MSVCR120_expm1(double x) #else double ret = exp(x) - 1; #endif - if (!isfinite(ret)) *MSVCRT__errno() = MSVCRT_ERANGE; return ret; } The function behaves differently depending on the reason of overflow. It doesn't set ERANGE errno if x == INFINITY (as your tests show). But it does set it when e.g. x == 10e100.
Thanks, Piotr
3159
Age (days ago)
3159
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban