mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Refactor tst-strtod-round.c for type-generic-ness
Reduce much of the redundancy in this file, and attempt to coral the type specific stuff to ease adding an new type.
This commit is contained in:
@ -22,10 +22,10 @@
|
||||
#define FSTRLENMAX 128
|
||||
|
||||
/* Splat n variants of the same test for the various strtod functions. */
|
||||
#define GEN_TEST_STRTOD_FOREACH(mfunc) \
|
||||
mfunc ( f, float, snprintf, "", f, f) \
|
||||
mfunc ( d, double, snprintf, "", , ) \
|
||||
mfunc ( ld, long double, snprintf, "L", L, l)
|
||||
#define GEN_TEST_STRTOD_FOREACH(mfunc, ...) \
|
||||
mfunc ( f, float, snprintf, "", f, f, ##__VA_ARGS__) \
|
||||
mfunc ( d, double, snprintf, "", , , ##__VA_ARGS__) \
|
||||
mfunc ( ld, long double, snprintf, "L", L, l, ##__VA_ARGS__)
|
||||
/* The arguments to the generated macros are:
|
||||
FSUF - Function suffix
|
||||
FTYPE - float type
|
||||
|
Reference in New Issue
Block a user