]> sourceware.org Git - glibc.git/commit
Make __strtod_internal tests type-generic master
authorJoseph Myers <josmyers@redhat.com>
Tue, 27 Aug 2024 20:41:54 +0000 (20:41 +0000)
committerJoseph Myers <josmyers@redhat.com>
Tue, 27 Aug 2024 20:41:54 +0000 (20:41 +0000)
commit3fc063dee01da4f80920a14b7db637c8501d6fd4
tree8a93c0997d50c7196ea5d6ac4765ee3e11fee541
parent457622c2fa8f9f7435822d5287a437bc8be8090d
Make __strtod_internal tests type-generic

Some of the strtod tests use type-generic machinery in tst-strtod.h to
test the strto* functions for all floating types, while others only
test double even when the tests are in fact meaningful for all
floating types.

Convert the tests of the internal __strtod_internal interface to cover
all floating types.  I haven't tried to convert them to use newer test
interfaces in other ways, just made the changes necessary to use the
type-generic machinery.  As an internal interface, there are no
aliases for different types with the same ABI (however,
__strtold_internal is defined even if long double has the same ABI as
double), so macros used by the type-generic testing code are redefined
as needed to avoid expecting such aliases to be present.

Tested for x86_64.
stdlib/tst-strtod1i.c
stdlib/tst-strtod3.c
stdlib/tst-strtod4.c
stdlib/tst-strtod5i.c
This page took 0.083441 seconds and 5 git commands to generate.