about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2019-08-13 23:04:38 +0000
committerJoseph Myers <joseph@codesourcery.com>2019-08-13 23:04:38 +0000
commitc3ce62cc0bd6e8a33629e2aabb7783a322e9189c (patch)
treecbad12f52e7a0d589b2b1628a39e5c8a7e0ac756 /ChangeLog
parent5a3afa9738f3dbbaf8c0a35665318c1af782111b (diff)
downloadglibc-c3ce62cc0bd6e8a33629e2aabb7783a322e9189c.tar.gz
glibc-c3ce62cc0bd6e8a33629e2aabb7783a322e9189c.tar.xz
glibc-c3ce62cc0bd6e8a33629e2aabb7783a322e9189c.zip
Declare some TS 18661-4 interfaces for C2X.
C2X (current version in git, postdating the most recent public draft
available as a PDF on the WG14 website) adds the interfaces from TS
18661-4, other than the reduction functions, as unconditionally
required and visible in <math.h> for hosted implementations; the
__STDC_WANT_IEC_60559_FUNCS_EXT__ macro is not included in C2X at all
(as the reduction functions aren't included at all, expected to end up
in a version of the TS updated to be relative to C2X).

This patch updates the glibc headers accordingly, following the same
pattern used for 18661-1 functions.  As the only 18661-4 functions
currently supported are the exp10 functions that have been in glibc
for a very long time, this means that in fact __GLIBC_USE
(IEC_60559_FUNCS_EXT) ends up being used only to determine the
definition of __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X, not yet in any
headers other than bits/libc-header-start.h.

(I hope to add the other 18661-4 functions to glibc at some point; the
main complication is the current lack of MPFR support for many of
these functions.)

Tested for x86_64.

	* bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
	Update comment.
	(__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
	* bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
	to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
	* math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
	Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 71b254158d..be6c9b3090 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2019-08-13  Joseph Myers  <joseph@codesourcery.com>
+
+	* bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
+	Update comment.
+	(__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
+	* bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
+	to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
+	* math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
+	Likewise.
+
 2019-08-13  Florian Weimer  <fweimer@redhat.com>
 
 	* login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):