diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-10-28 21:15:26 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-10-28 21:16:58 +0000 |
commit | f82a4bdb73328bc53bdcc344622acbd96522a83c (patch) | |
tree | 4e5eddb2c0335ee5655a2014949e6e6f1f7d9b45 /ChangeLog | |
parent | 739e14f9009ff91e4a8d01776e7269fc8cbd0293 (diff) | |
download | glibc-f82a4bdb73328bc53bdcc344622acbd96522a83c.tar.gz glibc-f82a4bdb73328bc53bdcc344622acbd96522a83c.tar.xz glibc-f82a4bdb73328bc53bdcc344622acbd96522a83c.zip |
Add SNAN, SNANF, SNANL macros.
TS 18661-1 defines SNAN macros for signaling NaN values, suitable for use in static initializers. This patch adds them to glibc's <math.h> (provided you are building with GCC 3.3 or later; no attempt is made to provide any kind of nonconforming fallback for older compilers without the __builtin_nans functions). Tested for x86_64 and x86. * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF): New macro. [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN): Likewise. [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL): Likewise. * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and SNANL. * math/test-double.h (snan_value_MACRO): New macro. * math/test-float.h (snan_value_MACRO): Likewise. * math/test-ldouble.h (snan_value_MACRO): Likewise. * math/libm-test.inc (issignaling_test_data): Add tests of snan_value_MACRO.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index d5b3f7bb7e..eed5cc5f37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2016-10-28 Joseph Myers <joseph@codesourcery.com> + + * math/math.h + [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF): + New macro. + [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN): + Likewise. + [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL): + Likewise. + * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and + SNANL. + * math/test-double.h (snan_value_MACRO): New macro. + * math/test-float.h (snan_value_MACRO): Likewise. + * math/test-ldouble.h (snan_value_MACRO): Likewise. + * math/libm-test.inc (issignaling_test_data): Add tests of + snan_value_MACRO. + 2016-10-28 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> * nptl/pthread_rwlock_unlock.c: Add a comment explaining its |