[libclc] r209849 - Fix _F definitions

Jeroen Ketema j.ketema at imperial.ac.uk
Thu May 29 14:29:34 PDT 2014


Author: jketema
Date: Thu May 29 16:29:34 2014
New Revision: 209849

URL: http://llvm.org/viewvc/llvm-project?rev=209849&view=rev
Log:
Fix _F definitions

The 'f' was missing and, hence, the values were
considered to be doubles instead of floats.

Reviewed by: Tom Stellard


Modified:
    libclc/trunk/generic/include/clc/float/definitions.h

Modified: libclc/trunk/generic/include/clc/float/definitions.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/float/definitions.h?rev=209849&r1=209848&r2=209849&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/float/definitions.h (original)
+++ libclc/trunk/generic/include/clc/float/definitions.h Thu May 29 16:29:34 2014
@@ -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
 





More information about the cfe-commits mailing list