Re: ilogbl(NaN) is wrong

2023-04-18 Thread Corinna Vinschen via Cygwin
On Apr 18 13:21, Bruno Haible via Cygwin wrote: > POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), > ilogbl() for a NaN argument should all be the same, namely FP_ILOGBNAN. > > [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html > > In Cygwin 3.4

ilogbl(NaN) is wrong

2023-04-18 Thread Bruno Haible via Cygwin
POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), ilogbl() for a NaN argument should all be the same, namely FP_ILOGBNAN. [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html In Cygwin 3.4.6, the value of ilogbl(NaN) is not right. How to reproduce