NaN fixes in pow, powf, modf, modff

Corinna Vinschen vinschen@redhat.com
Thu Mar 26 11:42:50 GMT 2020


On Mar 25 17:18, Keith Packard via Newlib wrote:
> The first patch makes modf set *iptr to qnan when provided an snan
> parameter, which wasn't happening on ARM softfp because GCC elided the
> * 1.0 operation.
> 
> The second patch cleans up modf/modff by not re-converting the float
> to bits before extracting the sign bit.
> 
> The third patch makes pow return qnan instead of 1.0 when the
> parameter is snan.
> 
> These functions now match glibc for all of my tests, which were
> derived from the IEEE requirements.
> 

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20200326/09ea389a/attachment.sig>


More information about the Newlib mailing list