]> git.ipfire.org Git - thirdparty/glibc.git/commit
Make __strtod_internal tests type-generic
authorJoseph Myers <josmyers@redhat.com>
Tue, 27 Aug 2024 20:41:54 +0000 (20:41 +0000)
committerArjun Shankar <arjun@redhat.com>
Fri, 27 Sep 2024 15:25:43 +0000 (17:25 +0200)
commit86369c9ee4d200527e85d240fa0ee081fdb9fb4c
tree89ac1735a6fbefdbcd5b1a85c15e24dbc9785871
parenta7be595c67d12f1a442e3f6894d67e20c7724bed
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.

(cherry picked from commit 3fc063dee01da4f80920a14b7db637c8501d6fd4)
stdlib/tst-strtod1i.c
stdlib/tst-strtod3.c
stdlib/tst-strtod4.c
stdlib/tst-strtod5i.c