diff options
author | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-05-27 09:53:51 -0500 |
---|---|---|
committer | Paul E. Murphy <murphyp@linux.vnet.ibm.com> | 2016-05-27 09:57:21 -0500 |
commit | 5f7b8f457f5ec9c93664e3e78efe8c2585efc34b (patch) | |
tree | 886abebf4ec34e768ddc1c37816036e65bbb5556 /math/test-float.h | |
parent | bba14195895fa612a8ef484e9856127a1be4f80f (diff) | |
download | glibc-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-float.h')
-rw-r--r-- | math/test-float.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/math/test-float.h b/math/test-float.h index 629f6ee..9bb3b84 100644 --- a/math/test-float.h +++ b/math/test-float.h @@ -23,3 +23,7 @@ #define PRINTF_NEXPR "f" #define TEST_FLOAT 1 #define BUILD_COMPLEX(real, imag) (CMPLXF ((real), (imag))) +#define PREFIX FLT +#define TYPE_STR "float" +#define LIT(x) (x ## f) +#define FTOSTR snprintf |