1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

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.
This commit is contained in:
Paul E. Murphy
2016-05-27 12:03:33 -05:00
parent 135d1c7f6a
commit 84ba459dcf
5 changed files with 169 additions and 154 deletions

View File

@ -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