1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Replace use of snprintf with strfrom in libm tests

In order to support float128 tests, the calls to snprintf, which does
not support the type __float128, are replaced with calls to
strfrom{f,d,l}.

Tested for powerpc64le, s390, and x64_64.
This commit is contained in:
Gabriel F. T. Gomes
2016-09-27 15:28:49 -03:00
parent dd037fb3df
commit 06fea2257d
5 changed files with 72 additions and 42 deletions

View File

@ -18,14 +18,11 @@
#define FUNC(function) function ## f
#define FLOAT float
#define PRINTF_EXPR "e"
#define PRINTF_XEXPR "a"
#define PRINTF_NEXPR "f"
#define BUILD_COMPLEX(real, imag) (CMPLXF ((real), (imag)))
#define PREFIX FLT
#define TYPE_STR "float"
#define LIT(x) (x ## f)
/* Use the double variants of macro constants. */
#define LITM(x) x
#define FTOSTR snprintf
#define FTOSTR strfromf
#define snan_value_MACRO SNANF