summaryrefslogtreecommitdiff
path: root/math/test-double.h
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-27 09:53:51 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-27 09:57:21 -0500
commit5f7b8f457f5ec9c93664e3e78efe8c2585efc34b (patch)
tree886abebf4ec34e768ddc1c37816036e65bbb5556 /math/test-double.h
parentbba14195895fa612a8ef484e9856127a1be4f80f (diff)
downloadglibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.tar.gz
Begin refactor of libm-test.inc
Attempt to creatively redefine the macros to choose tests based on the format being tested, not the type. Note, TS 18661 does not define any printf modifiers, so we need to be a little more verbose about constructing strings to output.
Diffstat (limited to 'math/test-double.h')
-rw-r--r--math/test-double.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/test-double.h b/math/test-double.h
index 16b4ce8081..6783b4449c 100644
--- a/math/test-double.h
+++ b/math/test-double.h
@@ -23,3 +23,7 @@
#define PRINTF_NEXPR "f"
#define TEST_DOUBLE 1
#define BUILD_COMPLEX(real, imag) (CMPLX ((real), (imag)))
+#define PREFIX DBL
+#define LIT(x) (x)
+#define TYPE_STR "double"
+#define FTOSTR snprintf