[Libclc-dev] [PATCH 1/3] Fix _F definitions

Jeroen Ketema j.ketema at imperial.ac.uk
Sun May 4 14:42:26 PDT 2014


The 'f' was missing and, hence, the values were
considered to be doubles instead of floats.
---
generic/include/clc/float/definitions.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/generic/include/clc/float/definitions.h b/generic/include/clc/float/definitions.h
index d6fee84..83bdd9d 100644
--- a/generic/include/clc/float/definitions.h
+++ b/generic/include/clc/float/definitions.h
@@ -9,8 +9,8 @@
#define FLT_MIN         0x1.0p-126f
#define FLT_EPSILON     0x1.0p-23f

-#define M_LOG2E_F       0x1.715476p+0
-#define M_PI_F          0x1.921fb6p+1
+#define M_LOG2E_F       0x1.715476p+0f
+#define M_PI_F          0x1.921fb6p+1f

#ifdef cl_khr_fp64

-- 
1.8.5.2 (Apple Git-48)





More information about the Libclc-dev mailing list