diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-08-03 17:30:41 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-08-03 17:30:41 +0000 |
commit | bf91be88ea90c1ea888d5646270d66363389ce96 (patch) | |
tree | 47698077c37a33c048dd303dfe41366d2f017bca /manual/creature.texi | |
parent | Unify drift between _Complex function type variants (diff) | |
download | glibc-bf91be88ea90c1ea888d5646270d66363389ce96.tar.gz glibc-bf91be88ea90c1ea888d5646270d66363389ce96.tar.bz2 glibc-bf91be88ea90c1ea888d5646270d66363389ce96.zip |
Support __STDC_WANT_IEC_60559_BFP_EXT__ feature test macro.
This patch implements support for the __STDC_WANT_IEC_60559_BFP_EXT__
feature test macro from ISO/IEC 18661-1:2014, following the
__GLIBC_USE approach now used for __STDC_WANT_LIB_EXT2__. For this
macro, the relevant consideration is whether it is defined or
undefined when an affected header is included (not what its value is
if defined, and not whether it's defined or undefined when any other
unaffected system header is included).
Currently this macro only affects the issignaling macro and the nextup
and nextdown functions (so they can be enabled by defining this macro,
not just by defining _GNU_SOURCE as previously). Any further features
from this TS added in future would also be conditioned on this macro.
Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).
* bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
macro.
* include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
* manual/arith.texi (issignaling): Document as ISO from TS
18661-1:2014.
(nextup): Likewise.
(nextupf): Likewise.
(nextupl): Likewise.
(nextdown): Likewise.
(nextdownf): Likewise.
(nextdownl): Likewise.
* manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
macro.
* math/math.h: Define
__GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
<bits/libc-header-start.h> instead of including <features.h>.
(issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
[__USE_GNU].
* math/bits/mathcalls.h (nextdown): Declare if
[__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
(nextup): Likewise.
(__issignaling): Likewise.
Diffstat (limited to 'manual/creature.texi')
-rw-r--r-- | manual/creature.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manual/creature.texi b/manual/creature.texi index 65c5928343..61b17ce22b 100644 --- a/manual/creature.texi +++ b/manual/creature.texi @@ -174,6 +174,15 @@ of the features from this TR are supported by @theglibc{}. @end defvr @comment (none) +@comment ISO +@defvr Macro __STDC_WANT_IEC_60559_BFP_EXT__ +If you define this macro, features from ISO/IEC TS 18661-1:2014 +(Floating-point extensions for C: Binary floating-point arithmetic) +are enabled. Only some of the features from this TS are supported by +@theglibc{}. +@end defvr + +@comment (none) @comment GNU @defvr Macro _GNU_SOURCE If you define this macro, everything is included: @w{ISO C89}, @w{ISO |