]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add support for testing __STDC_WANT_IEC_60559_TYPES_EXT__
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Wed, 20 Jul 2016 17:14:21 +0000 (12:14 -0500)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Tue, 9 May 2017 14:40:28 +0000 (11:40 -0300)
This macro is defined by TS 18661-3 for supporting the _FloatN and
_FloatNx types, as well as the functions suffixed with fN.

* bits/libc-header-start.h:
(__GLIBC_USE_IEC_60559_TYPES_EXT): New macro.
* include/features.h: Describe __STDC_WANT_IEC_60559_TYPES_EXT__.
* manual/creature.texi: Likewise.

ChangeLog
bits/libc-header-start.h
include/features.h
manual/creature.texi

index 6adf580e7b12f531c4255917b04ea3f4aa52aa8f..9f6a60c3f5253c1df2d503dbf9b9ba35cf30c765 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
+           Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
+
+       * bits/libc-header-start.h:
+       (__GLIBC_USE_IEC_60559_TYPES_EXT): New macro.
+       * include/features.h: Describe __STDC_WANT_IEC_60559_TYPES_EXT__.
+       * manual/creature.texi: Likewise.
+
 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
            Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
 
index 860225d7ca6548fea22bda7e73c5118acf511ca4..0ce16e2532b89d5cc8b0b095c9a64795f62805c3 100644 (file)
 #else
 # define __GLIBC_USE_IEC_60559_FUNCS_EXT 0
 #endif
+
+/* ISO/IEC TS 18661-3:2015 defines the
+   __STDC_WANT_IEC_60559_TYPES_EXT__ macro.  */
+#undef __GLIBC_USE_IEC_60559_TYPES_EXT
+#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_TYPES_EXT__
+# define __GLIBC_USE_IEC_60559_TYPES_EXT 1
+#else
+# define __GLIBC_USE_IEC_60559_TYPES_EXT 0
+#endif
index 7de4089ed30155fed774cfaf26c15946269b5246..972cbd2b5d5244a3b52f4a5a892df4c29fc7de2c 100644 (file)
@@ -30,6 +30,8 @@
                        Extensions to ISO C11 from TS 18661-1:2014.
    __STDC_WANT_IEC_60559_FUNCS_EXT__
                        Extensions to ISO C11 from TS 18661-4:2015.
+   __STDC_WANT_IEC_60559_TYPES_EXT__
+                       Extensions to ISO C11 from TS 18661-3:2015.
 
    _POSIX_SOURCE       IEEE Std 1003.1.
    _POSIX_C_SOURCE     If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
index 50488862921612f496e34c9fb01f4f52669ea2ee..23218bbac343548c0b5fa09bb96551ccf8ec8b33 100644 (file)
@@ -191,6 +191,15 @@ enabled.  Only some of the features from this TS are supported by
 @theglibc{}.
 @end defvr
 
+@comment (none)
+@comment ISO
+@defvr Macro __STDC_WANT_IEC_60559_TYPES_EXT__
+If you define this macro, features from ISO/IEC TS 18661-3:2015
+(Floating-point extensions for C: Interchange and extended types) are
+enabled.  Only some of the features from this TS are supported by
+@theglibc{}.
+@end defvr
+
 @comment (none)
 @comment GNU
 @defvr Macro _GNU_SOURCE