1
0
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:
Paul E. Murphy
2016-05-09 17:59:37 -05:00
parent b4d80349bb
commit 1ced34c00a
5 changed files with 3271 additions and 3993 deletions

View File

@ -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