[Cfp-interest 2024] values of FE_TONEAREST...

Paul Zimmermann Paul.Zimmermann at inria.fr
Thu Jun 3 04:53:21 PDT 2021


       Hi,

I've discovered that the values of FE_TONEAREST, ... are incompatible between
GNU libc (which uses 0, 0x400, 0x800 and 0xc00) and Redhat Newlib (which
uses 0, 1, 2, 3). This means that a program dynamically compiled with one
library will not work with the other one, since the fesetround() calls will
use non-compatible values.

I see n2596.pdf doesn't specify the values of those macros. Should they be
specified to allow interoperability between libraries?

Best regards,
Paul



More information about the Cfp-interest mailing list