glibc/bits
Joseph Myers c3ce62cc0b 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.
2019-08-13 23:04:38 +00:00
..
types Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
byteswap.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
confname.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
dirent.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
dirent_ext.h Linux: Move getdents64 to <dirent.h> 2019-07-29 21:02:46 +02:00
dlfcn.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
elfclass.h
endian.h
environments.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
errno.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
fcntl.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
fenv.h Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
fenvinline.h
floatn-common.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
floatn.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
flt-eval-method.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
fp-fast.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
fp-logb.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
hwcap.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
in.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
indirect-return.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ioctl-types.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ioctls.h
ipc.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ipctypes.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
iscanonical.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
libc-header-start.h Declare some TS 18661-4 interfaces for C2X. 2019-08-13 23:04:38 +00:00
libm-simd-decl-stubs.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
link.h
local_lim.h
long-double.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
math-finite.h Declare some TS 18661-4 interfaces for C2X. 2019-08-13 23:04:38 +00:00
math-vector.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mathdef.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mathinline.h
mman.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
msq.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
netdb.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
poll.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
posix_opt.h
pthreadtypes.h
resource.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sched.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
select.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sem.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
setjmp.h
shm.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigaction.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigcontext.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigevent-consts.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
siginfo-consts.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
signal_ext.h Linux: Add the tgkill function 2019-05-14 22:55:51 +02:00
signum-generic.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
signum.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigstack.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sigthread.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sockaddr.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
socket.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ss_flags.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stat.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
statfs.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
statvfs.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stdint-intn.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stdint-uintn.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stdlib-bsearch.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sys_errlist.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
syslog-path.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
termios.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
time.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
time64.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
timesize.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
typesizes.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
uintn-identity.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
uio-ext.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
uio_lim.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
unistd_ext.h Move generic <bits/unistd_ext.h> to a more regular location 2019-02-08 21:06:11 +01:00
utmp.h login: Assume that _HAVE_UT_* constants are true 2019-08-13 12:09:32 +02:00
utsname.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
waitflags.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
waitstatus.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wchar.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wordsize.h Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00