summary refs log tree commit diff
path: root/math/test-float.h
diff options
context:
space:
mode:
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-27 12:03:33 -0500
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>2016-05-27 12:03:33 -0500
commit84ba459dcf558362ee7b81f7c752f984b1c80fc3 (patch)
tree6ed0c769632de735ab8d97d81e3726a87b8dbf34 /math/test-float.h
parent135d1c7f6a6069a30be3b75461ec97285106a742 (diff)
downloadglibc-84ba459dcf558362ee7b81f7c752f984b1c80fc3.tar.gz
glibc-84ba459dcf558362ee7b81f7c752f984b1c80fc3.tar.xz
glibc-84ba459dcf558362ee7b81f7c752f984b1c80fc3.zip
Replace M_PI2l with lit_pi_2_d in libm-test.inc
This is useful in situations where the long double type is
less precise than the type under test.  This adds a new
wrapper macro LITM(x) to each type to append the proper
suffix onto macro constants found in math.h.
Diffstat (limited to 'math/test-float.h')
-rw-r--r--math/test-float.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/test-float.h b/math/test-float.h
index 9bb3b84651..4f9149f89c 100644
--- a/math/test-float.h
+++ b/math/test-float.h
@@ -26,4 +26,6 @@
 #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