Re: ilogbl(0.0L) value is wrong

2019-12-17 Thread Corinna Vinschen
On Dec 17 12:04, Bruno Haible wrote: > Hi Corinna, > > > I pushed this patch: > > > > > > https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=29ba52da9553 > > > > Please test the latest developer snapshot from https://cygwin.com/snapshots/ > > I can't test it easily. The code is

Re: ilogbl(0.0L) value is wrong

2019-12-17 Thread Bruno Haible
Hi Corinna, > I pushed this patch: > > https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=29ba52da9553 > > Please test the latest developer snapshot from https://cygwin.com/snapshots/ I can't test it easily. But the code looks good; only the comments could be improved; patch atta

Re: ilogbl(0.0L) value is wrong

2019-12-16 Thread Corinna Vinschen
Hi Bruno, On Dec 12 11:26, Bruno Haible wrote: > POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), > ilogbl() for a zero argument should all be the same, namely FP_ILOGB0. > > [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html > > In Cygwin 2.9,

ilogbl(0.0L) value is wrong

2019-12-12 Thread Bruno Haible
POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), ilogbl() for a zero argument should all be the same, namely FP_ILOGB0. [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html In Cygwin 2.9, the value of ilogbl(0.0L) is not right. How to reproduce: