Re: [Mingw-w64-public] isfinite() is broken under quadmath

2023-07-19 Thread LIU Hao
在 2023-07-19 20:30, sisyphus 写道: Is there some action I should take in order to improve the chances of this being fixed ? The problem arose in relation to the compilation of a perl module (DateTime). It turns out that Perl's C API provides a 'Perl_isfinite' function that does work with __float12

Re: [Mingw-w64-public] isfinite() is broken under quadmath

2023-07-19 Thread sisyphus
On Sat, Jul 15, 2023 at 12:42 AM LIU Hao wrote:[snip > [snip] > Looks like our `fpclassify()` doesn't handle `__float128`: Thank you for explaining. Is there some action I should take in order to improve the chances of this being fixed ? The problem arose in relation to the compilation of a pe

Re: [Mingw-w64-public] isfinite() is broken under quadmath

2023-07-14 Thread LIU Hao
在 2023-07-14 21:38, sisyphus 写道: Hi, I've tested this with 64-bit gcc-11.3.0 and (both 32-bit and 64-bit) gcc-13.1.0 nad am seeing the same brokenness. Looks like our `fpclassify()` doesn't handle `__float128`: ``` #define fpclassify(x) \ __mingw_choose_expr (

[Mingw-w64-public] isfinite() is broken under quadmath

2023-07-14 Thread sisyphus
Hi, I've tested this with 64-bit gcc-11.3.0 and (both 32-bit and 64-bit) gcc-13.1.0 nad am seeing the same brokenness. The demo: // /* isfinite.c */ #include #include #include int main(void) { __float128 x = 1.0Q; if(isfinite(x)) printf("OK\n"); else printf("NOT ok\n");