]> git.ipfire.org Git - thirdparty/glibc.git/commit - stdlib/strtold.c
Support strtof128 etc. aliases.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 16 Oct 2017 13:22:11 +0000 (13:22 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 16 Oct 2017 13:22:11 +0000 (13:22 +0000)
commit02010e79ceb7989686a0c8c40878024e30fdc888
tree808814c02c69025ba3ea915b7122d38f3a3aaa81
parentea91c315bca91fe8d5c36f1aa1dc98d2f0ab4ef4
Support strtof128 etc. aliases.

This patch adds support for building strtof128, wcstof128, strtof128_l
and wcstof128_l as aliases, in the case of __HAVE_FLOAT128 &&
!__HAVE_DISTINCT_FLOAT128.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by this patch.  Also tested together with
changes to enable float128 aliases.

* stdlib/strtold.c: Include <bits/floatn.h>
[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
and later undefine as macro.  Define as weak alias if
[!USE_WIDE_CHAR].
[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
and later undefine as macro.  Define as weak alias if
[USE_WIDE_CHAR].
* sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
!__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
Define and later undefine as macro.  Define as weak alias if
[USE_WIDE_CHAR].
* sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
<bits/floatn.h>.
[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
Define and later undefine as macro.  Define as weak alias if
[!USE_WIDE_CHAR].
[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
Define and later undefine as macro.  Define as weak alias if
[USE_WIDE_CHAR].
ChangeLog
stdlib/strtold.c
sysdeps/ieee754/ldbl-128/strtold_l.c
sysdeps/ieee754/ldbl-64-128/strtold_l.c