[PATCH] libm/math: Use __math_xflow in obsolete math code
Keith Packard
keithp@keithp.com
Mon Aug 3 23:21:08 GMT 2020
Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
> either you got lucky or you use another compiler
> than i do.
Yeah. Just lucky. Thanks for the warning. My fenv tests in picolibc are
using 'volatile' to force the desired order-of-operations.
https://github.com/keith-packard/picolibc/blob/main/test/fenv.c
This gets tested in a huge range of configurations on RISC-V, x86 and
ARM and generates the expected results in all of them.
--
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20200803/7d176107/attachment.sig>
More information about the Newlib
mailing list