1 Jul
2025
1 Jul
'25
1:05 p.m.
Piotr Caban (@piotr) commented about dlls/msvcr120/tests/msvcr120.c:
+ errno_t e; + float r; + int i; + + __setusermatherr(matherr_callback); + + for(i=0; i<ARRAY_SIZE(tests); i++) { + errno = -1; + exception.type = -1; + r = expf(tests[i].x); + e = errno; + + if(isnan(tests[i].exp)) + ok(isnan(r), "expected NAN, got %0.7e for %d\n", r, i); + else if(isinf(tests[i].exp)) + ok(isinf(tests[i].exp) || r == 0.0f, /* 64-bit vs 32-bit windows */
ok(isinf(r)...
After moving the tests to ucrtbase `|| r == 0.0f` part will not be needed. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8382#note_108527