summaryrefslogtreecommitdiff
path: root/math/test-double.h
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-09-27 15:28:49 -0300
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-12-20 17:58:20 -0200
commit06fea2257dd93aa813f9a8a6ef09c0dc9ee5744d (patch)
tree8a3eebebac72f3f4ccebede4ada80b86e60aa664 /math/test-double.h
parentdd037fb3df286b7c2d0b0c6f8d02a2dd8a8e8a08 (diff)
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.
Diffstat (limited to 'math/test-double.h')
-rw-r--r--math/test-double.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/math/test-double.h b/math/test-double.h
index e172b8fb4d..170f03c5a6 100644
--- a/math/test-double.h
+++ b/math/test-double.h
@@ -18,13 +18,10 @@
#define FUNC(function) function
#define FLOAT double
-#define PRINTF_EXPR "e"
-#define PRINTF_XEXPR "a"
-#define PRINTF_NEXPR "f"
#define BUILD_COMPLEX(real, imag) (CMPLX ((real), (imag)))
#define PREFIX DBL
#define LIT(x) (x)
#define TYPE_STR "double"
#define LITM(x) x
-#define FTOSTR snprintf
+#define FTOSTR strfromd
#define snan_value_MACRO SNAN