aboutsummaryrefslogtreecommitdiff
path: root/math/test-float128.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/test-float128.h')
-rw-r--r--math/test-float128.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/math/test-float128.h b/math/test-float128.h
index 3132766..3fd9f54 100644
--- a/math/test-float128.h
+++ b/math/test-float128.h
@@ -28,9 +28,15 @@
#define CFLOAT __CFLOAT128
#define BUILD_COMPLEX(real, imag) (CMPLXF128 ((real), (imag)))
#define PREFIX FLT128
-#define TYPE_STR "float128"
-#define ULP_IDX ULP_FLT128
-#define ULP_I_IDX ULP_I_FLT128
+#if FLT128_MANT_DIG == LDBL_MANT_DIG
+# define TYPE_STR "ldouble"
+# define ULP_IDX ULP_LDBL
+# define ULP_I_IDX ULP_I_LDBL
+#else
+# define TYPE_STR "float128"
+# define ULP_IDX ULP_FLT128
+# define ULP_I_IDX ULP_I_FLT128
+#endif
#define LIT(x) __f128 (x)
#define LITM(x) x ## f128
#define FTOSTR strfromf128