[PATCH] Fix hypotf missing mask in hi+lo decomposition
Keith Packard
keithp@keithp.com
Thu Mar 19 22:27:38 GMT 2020
Fabian Schriever <fabian.schriever@gtd-gmbh.de> writes:
> Add the missing mask for the decomposition of hi+lo which caused some
> errors of 1-2 ULP.
> - SET_FLOAT_WORD(t1,ha+0x00800000L);
> + SET_FLOAT_WORD(t1,(ha+0x00800000L)&0xfffff000UL);
Looks correct to me. I note that glibc has switched to using double for
float paths, so there's no comparable code there.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20200319/feb4bddd/attachment.sig>
More information about the Newlib
mailing list