In practice, little uses these constants though; since 7d929f711d3e6cd757b3dc3ddcd66f8bd6f0c77b, the implementation of nanl() hasn't used these constants on arm/aarch64.
Signed-off-by: Martin Storsjö <[email protected]> --- mingw-w64-crt/math/fp_constsl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mingw-w64-crt/math/fp_constsl.c b/mingw-w64-crt/math/fp_constsl.c index 880408209..fa422110b 100644 --- a/mingw-w64-crt/math/fp_constsl.c +++ b/mingw-w64-crt/math/fp_constsl.c @@ -6,10 +6,17 @@ #include "fp_consts.h" #include <math.h> +#if defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) +const union _ieee_rep __QNAN = { __DOUBLE_QNAN_REP }; +const union _ieee_rep __SNAN = { __DOUBLE_SNAN_REP }; +const union _ieee_rep __INF = { __DOUBLE_INF_REP }; +const union _ieee_rep __DENORM = { __DOUBLE_DENORM_REP }; +#else const union _ieee_rep __QNANL = { __LONG_DOUBLE_QNAN_REP }; const union _ieee_rep __SNANL = { __LONG_DOUBLE_SNAN_REP }; const union _ieee_rep __INFL = { __LONG_DOUBLE_INF_REP }; const union _ieee_rep __DENORML = { __LONG_DOUBLE_DENORM_REP }; +#endif #undef nanl /* FIXME */ -- 2.34.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
