From: Paul Eggert Date: Fri, 3 Feb 2023 22:05:16 +0000 (-0800) Subject: isnan: update comment X-Git-Tag: v1.0~1719 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=954e6583567d7b01e74ea0d05db5b9f0d4d6f6b5;p=gnulib.git isnan: update comment * lib/isnan.c: Update comment for C23. --- diff --git a/ChangeLog b/ChangeLog index e7bee4f00d..2a7879c0ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-02-03 Paul Eggert + + isnan: update comment + * lib/isnan.c: Update comment for C23. + 2023-01-30 Bruno Haible at-internal: Fix support for z/OS. diff --git a/lib/isnan.c b/lib/isnan.c index 7119bb298e..39e193b960 100644 --- a/lib/isnan.c +++ b/lib/isnan.c @@ -82,9 +82,10 @@ typedef union { DOUBLE value; unsigned int word[NWORDS]; } memory_double; /* Most hosts nowadays use IEEE floating point, so they use IEC 60559 representations, have infinities and NaNs, and do not trap on exceptions. Define IEEE_FLOATING_POINT if this host is one of the - typical ones. The C11 macro __STDC_IEC_559__ is close to what is + typical ones. The C23 macro __STDC_IEC_60559_BFP__ macro (or its cousin, + the now-obsolescent C11 macro __STDC_IEC_559__) is close to what is wanted here, but is not quite right because this file does not require - all the features of C11 Annex F (and does not require C11 at all, + all the features of C23 Annex F (and works even with pre-C11 platforms, for that matter). */ #define IEEE_FLOATING_POINT (FLT_RADIX == 2 && FLT_MANT_DIG == 24 \