]> git.ipfire.org Git - thirdparty/glibc.git/commit
float128: Add strtof128, wcstof128, and related functions.
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Mon, 25 Jul 2016 18:10:00 +0000 (13:10 -0500)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Thu, 25 May 2017 19:14:46 +0000 (16:14 -0300)
commit3d9c4a47798dbf95be62e1a72d9860ba0c9c2657
tree9506697456a0a5adef9d4582eeb710d66a247f4e
parentb2da97305ccbfbbe16778ba3b6acb59268ab625c
float128: Add strtof128, wcstof128, and related functions.

The implementations are contained with sysdeps/ieee754/float128 as
they are only built when _Float128 is enabled within libc/m.

2017-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>

* NEWS: Mention the addition of strtof128 and wcstof128.

* include/gmp.h (__mpn_construct_float128): New declaration.
* include/stdlib.h: Include bits/floatn.h for _Float128 tests.
(__strtof128_l): New declaration.
(__strtof128_nan): Likewise.
(__wcstof128_nan): Likewise.
(__strtof128_internal): Likewise.
(____strtof128_l_internal): Likewise.
* include/wchar.h: Include bits/floatn.h for _Float128 tests.
(__wcstof128_l): New declaration.
(__wcstof128_internal): Likewise.

* stdlib/Makefile (bug-strtod2): Link libm too.

* stdlib/stdlib.h (strtof128): New declaration.
(strtof128_l): Likewise.

* stdlib/tst-strtod-nan-locale-main.c: Updated to use
tst-strtod.h macros to ensure float128 gets tested too.

* stdlib/tst-strtod-round-skeleton.c (CHOOSE_f128): New macro.

* stdlib/tst-strtod.h: Include bits/floatn.h for _Float128
tests.
(_GEN_F128): New macro.
(_GEN): Likewise.
(_GENx): Likewise.
(_DO_F128): Likewise.
(_DO): Likewise.
(_DOx): Likewise.
(GEN_TEST_STRTOD): Update to optionally include _Float128 in
the tests.
(STRTOD_TEST_FOREACH): Likewise.

* sysdeps/ieee754/float128/Makefile: Insert new strtof128 and
wcstof128 functions into libc.

* sysdeps/ieee754/float128/Versions: Add exports for the above
new functions.

* sysdeps/ieee754/float128/mpn2float128.c: New file.
* sysdeps/ieee754/float128/strtod_nan_float128.h: New file.
* sysdeps/ieee754/float128/strtof128.c: New file.
* sysdeps/ieee754/float128/strtof128_l.c: New file.
* sysdeps/ieee754/float128/strtof128_nan.c: New file.
* sysdeps/ieee754/float128/wcstof128.c: New file.
* sysdeps/ieee754/float128/wcstof128_l.c: New file.
* sysdeps/ieee754/float128/wcstof128_nan.c: New fike.
* wcsmbs/Makefile: (CFLAGS-wcstof128.c): Append strtox-CFLAGS.
(CFLAGS-wcstof128_l): Likewise.

* wcsmbs/wchar.h (wcstof128): New declaration.
(wcstof128_l): Likewise.
21 files changed:
NEWS
include/gmp.h
include/stdlib.h
include/wchar.h
stdlib/Makefile
stdlib/stdlib.h
stdlib/tst-strtod-nan-locale-main.c
stdlib/tst-strtod-round-skeleton.c
stdlib/tst-strtod.h
sysdeps/ieee754/float128/Makefile
sysdeps/ieee754/float128/Versions
sysdeps/ieee754/float128/mpn2float128.c [new file with mode: 0644]
sysdeps/ieee754/float128/strtod_nan_float128.h [new file with mode: 0644]
sysdeps/ieee754/float128/strtof128.c [new file with mode: 0644]
sysdeps/ieee754/float128/strtof128_l.c [new file with mode: 0644]
sysdeps/ieee754/float128/strtof128_nan.c [new file with mode: 0644]
sysdeps/ieee754/float128/wcstof128.c [new file with mode: 0644]
sysdeps/ieee754/float128/wcstof128_l.c [new file with mode: 0644]
sysdeps/ieee754/float128/wcstof128_nan.c [new file with mode: 0644]
wcsmbs/Makefile
wcsmbs/wchar.h