about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-08-03 22:21:37 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-08-03 22:21:37 +0000
commit412cb261b0d66ef5251d7d1c8276b5c522d943b7 (patch)
treea1761d0c902d348f6a8c00c7a155dee2c3cd026d /manual
parent71b480444799983c2dc4f512671c47f78d99ac13 (diff)
downloadglibc-412cb261b0d66ef5251d7d1c8276b5c522d943b7.tar.gz
glibc-412cb261b0d66ef5251d7d1c8276b5c522d943b7.tar.xz
glibc-412cb261b0d66ef5251d7d1c8276b5c522d943b7.zip
Support __STDC_WANT_IEC_60559_FUNCS_EXT__ feature test macro.
This patch implements support for the
__STDC_WANT_IEC_60559_FUNCS_EXT__ feature test macro, following the
__GLIBC_USE approach used for other ISO C feature test macros.
Currently this only affects the exp10 functions (which glibc has had
for a long time).

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_FUNCS_EXT): New
	macro.
	* include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
	Document.
	* manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
	Document macro.
	* manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
	(exp10f): Likewise.
	(exp10l): Likewise.
	* math/bits/mathcalls.h (exp10): Declare if
	[__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
Diffstat (limited to 'manual')
-rw-r--r--manual/creature.texi9
-rw-r--r--manual/math.texi9
2 files changed, 14 insertions, 4 deletions
diff --git a/manual/creature.texi b/manual/creature.texi
index 61b17ce22b..257f8718b1 100644
--- a/manual/creature.texi
+++ b/manual/creature.texi
@@ -183,6 +183,15 @@ are enabled.  Only some of the features from this TS are supported by
 @end defvr
 
 @comment (none)
+@comment ISO
+@defvr Macro __STDC_WANT_IEC_60559_FUNCS_EXT__
+If you define this macro, features from ISO/IEC TS 18661-4:2015
+(Floating-point extensions for C: Supplementary functions) 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
diff --git a/manual/math.texi b/manual/math.texi
index 5c9f7b9f1c..d689820c6c 100644
--- a/manual/math.texi
+++ b/manual/math.texi
@@ -480,13 +480,13 @@ Mathematically, @code{exp2 (x)} is the same as @code{exp (x * log (2))}.
 @end deftypefun
 
 @comment math.h
-@comment GNU
+@comment ISO
 @deftypefun double exp10 (double @var{x})
 @comment math.h
-@comment GNU
+@comment ISO
 @deftypefunx float exp10f (float @var{x})
 @comment math.h
-@comment GNU
+@comment ISO
 @deftypefunx {long double} exp10l (long double @var{x})
 @comment math.h
 @comment GNU
@@ -501,7 +501,8 @@ Mathematically, @code{exp2 (x)} is the same as @code{exp (x * log (2))}.
 These functions compute @code{10} raised to the power @var{x}.
 Mathematically, @code{exp10 (x)} is the same as @code{exp (x * log (10))}.
 
-These functions are GNU extensions.  The name @code{exp10} is
+The @code{exp10} functions are from TS 18661-4:2015; the @code{pow10}
+names are GNU extensions.  The name @code{exp10} is
 preferred, since it is analogous to @code{exp} and @code{exp2}.
 @end deftypefun