From 84ba459dcf558362ee7b81f7c752f984b1c80fc3 Mon Sep 17 00:00:00 2001 From: "Paul E. Murphy" Date: Fri, 27 May 2016 12:03:33 -0500 Subject: 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. --- math/test-float.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'math/test-float.h') 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 -- cgit v1.2.3