aboutsummaryrefslogtreecommitdiff
path: root/math/test-ldouble.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-ldouble.h
parentbba14195895fa612a8ef484e9856127a1be4f80f (diff)
downloadglibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.zip
glibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.tar.gz
glibc-5f7b8f457f5ec9c93664e3e78efe8c2585efc34b.tar.bz2
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-ldouble.h')
-rw-r--r--math/test-ldouble.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/test-ldouble.h b/math/test-ldouble.h
index 481561f..63f5008 100644
--- a/math/test-ldouble.h
+++ b/math/test-ldouble.h
@@ -23,3 +23,7 @@
#define PRINTF_NEXPR "Lf"
#define TEST_LDOUBLE 1
#define BUILD_COMPLEX(real, imag) (CMPLXL ((real), (imag)))
+#define PREFIX LDBL
+#define TYPE_STR "ldouble"
+#define LIT(x) (x ## L)
+#define FTOSTR snprintf