[Libclc-dev] [PATCH 1/3] Add MAXFLOAT
Jeroen Ketema
j.ketema at imperial.ac.uk
Mon Jun 23 08:33:25 PDT 2014
Align definitions while we are here.
---
generic/include/clc/float/definitions.h | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/generic/include/clc/float/definitions.h b/generic/include/clc/float/definitions.h
index c395964..cd65324 100644
--- a/generic/include/clc/float/definitions.h
+++ b/generic/include/clc/float/definitions.h
@@ -1,6 +1,7 @@
-#define INFINITY __builtin_inff()
-#define NAN __builtin_nanf("")
-#define HUGE_VALF __builtin_huge_valf()
+#define MAXFLOAT 0x1.fffffep127f
+#define HUGE_VALF __builtin_huge_valf()
+#define INFINITY __builtin_inff()
+#define NAN __builtin_nanf("")
#define FLT_DIG 6
#define FLT_MANT_DIG 24
@@ -9,7 +10,7 @@
#define FLT_MIN_10_EXP -37
#define FLT_MIN_EXP -125
#define FLT_RADIX 2
-#define FLT_MAX 0x1.fffffep127f
+#define FLT_MAX MAXFLOAT
#define FLT_MIN 0x1.0p-126f
#define FLT_EPSILON 0x1.0p-23f
@@ -29,7 +30,7 @@
#ifdef cl_khr_fp64
-#define HUGE_VAL __builtin_huge_val()
+#define HUGE_VAL __builtin_huge_val()
#define DBL_DIG 15
#define DBL_MANT_DIG 53
--
1.8.5.2 (Apple Git-48)
More information about the Libclc-dev
mailing list