aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-12-05 18:31:53 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-12-05 18:31:53 +0000
commita5a2a76bb71940cb8ceb4769a975327027fd55b5 (patch)
tree2798627868c1f129bffaf3458995f6db86c20a9e /ChangeLog
parent94d80dfc7349b3545942fbbb1d5ff05f354afdf8 (diff)
downloadglibc-a5a2a76bb71940cb8ceb4769a975327027fd55b5.tar
glibc-a5a2a76bb71940cb8ceb4769a975327027fd55b5.tar.gz
glibc-a5a2a76bb71940cb8ceb4769a975327027fd55b5.tar.bz2
glibc-a5a2a76bb71940cb8ceb4769a975327027fd55b5.zip
Support defining strtof64, strtof32x, wcstof64, wcstof32x aliases.
This patch adds support for defining strtof64, strtof32x, wcstof64, wcstof32x and the corresponding _l functions as aliases of the corresponding double functions when _Float64 and _Float32x support is enabled. Tested for x86_64; also tested with build-many-glibcs.py in conjunction with other _Float64 / _Float32x changes. * stdlib/strtod.c: Include <bits/floatn.h>. (BUILD_DOUBLE): New macro. [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strtof64): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (wcstof64): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR]. [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strtof32x): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (wcstof32x): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR]. * stdlib/strtod_l.c: Include <bits/floatn.h>. (BUILD_DOUBLE): New macro. [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strtof64_l): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (wcstof64_l): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR]. [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strtof32x_l): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (wcstof32x_l): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog31
1 files changed, 31 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bac6b8cb1f..c2a78bbf40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,34 @@
+2017-12-05 Joseph Myers <joseph@codesourcery.com>
+
+ * stdlib/strtod.c: Include <bits/floatn.h>.
+ (BUILD_DOUBLE): New macro.
+ [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
+ (strtof64): Define and later undefine as macro. Define as weak
+ alias if [!USE_WIDE_CHAR].
+ [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
+ (wcstof64): Define and later undefine as macro. Define as weak
+ alias if [USE_WIDE_CHAR].
+ [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
+ (strtof32x): Define and later undefine as macro. Define as weak
+ alias if [!USE_WIDE_CHAR].
+ [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
+ (wcstof32x): Define and later undefine as macro. Define as weak
+ alias if [USE_WIDE_CHAR].
+ * stdlib/strtod_l.c: Include <bits/floatn.h>.
+ (BUILD_DOUBLE): New macro.
+ [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
+ (strtof64_l): Define and later undefine as macro. Define as weak
+ alias if [!USE_WIDE_CHAR].
+ [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
+ (wcstof64_l): Define and later undefine as macro. Define as weak
+ alias if [USE_WIDE_CHAR].
+ [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
+ (strtof32x_l): Define and later undefine as macro. Define as weak
+ alias if [!USE_WIDE_CHAR].
+ [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
+ (wcstof32x_l): Define and later undefine as macro. Define as weak
+ alias if [USE_WIDE_CHAR].
+
2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.