Re: [PATCH] libm/math: Use __math_xflow in obsolete math code

Keith Packard via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Szabolcs Nagy <[email protected]> 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
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl8om+QACgkQ2yIaaQAA
ABELLA/9G1k4A0Ra6NicDzH13vAb/yNxetqrtGkYl5SIZIpbnxYK/7TZR/Clw5jV
uYojBzpOtl19MqWHvFVXxjlydEkWV/2UVMFHbY3KzVLRNpbLNhZuj/cmaWd/NTI6
X27NClG9+w33fB3nK24YHZ+MIMQg9Vo1rtUOguk+s89e9rqdLOlkdVuSng4Sy72E
16l6kqF1bbiKpAXXP3QqEt8xHeaHmK/dht0pDf/yZUP4MA3OgDoUDs8YBDgfc7tE
4GMKpDdAR5GNdvg4xVdYhukK4c2TzQFEVy4yS5cn8cJxo3O0PG0LH1xo/Bv7OWyA
2U1QC/IfRTuFj1xaAsW/70xJ4KMz1WoIqN4TP0nTpRzEkfzbp8YuGCDfzDxlZyZS
bM0kpuQxmImLnUHAHVaFRSmu14TWB/8/GGWOtzEXaq4w75epzaETWGkoP/CKfKSy
EFYuQVBokfykzUeZaF5UAZWcvtre/tuTZjwFbE49aR3XHQ7QjfhRTlUOiiH5Nszy
VHGb9swk5uqSESMl7S2rDtDH383hzUtCpB1rM0QUCOd856qcG+OzGPlHB/fExNce
uucUQmGTUNBaAhVRQbHnm4s5qT2LdIsSqZ03I2WKFKr6GdCUbqJAiJSL3f0AqzO0
XJrVsSi6X6AcZytAyfpg3mm53f2Aj8Ay50kkLHGeRKlXDvKYcD4=
=EwC0
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.