Re: [Mingw-w64-public] powl() doesn't always return correct result.

2024-12-08 Thread LIU Hao
在 2024-12-09 13:33, sisyphus 写道: This issue was also reported to Debian in late 2013 (and fixed for that platform in early 2014). See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727841 Do I need to provide any additional information ? (Results seem to be the same on both 32-bit and 64-bi

[Mingw-w64-public] powl() doesn't always return correct result.

2024-12-08 Thread sisyphus
The demo: /**/ /* powl_bug.c */ #include #include #include int main(void) { long double sld, ld1, ld2, int1 = 10.0L, int2 = -298.0L; sld = strtold("1e-298", NULL); printf ("sld : %.21Lg %La\n", sld, sld); /* Correct */ ld1 = powl(10.0L, -298.0L); printf ("ld1