[libclc] r205055 - Introduce M_LOG2E_F and M_LOG2E

Tom Stellard thomas.stellard at amd.com
Fri Mar 28 14:19:03 PDT 2014


Author: tstellar
Date: Fri Mar 28 16:19:03 2014
New Revision: 205055

URL: http://llvm.org/viewvc/llvm-project?rev=205055&view=rev
Log:
Introduce M_LOG2E_F and M_LOG2E

Patch by: Jeroen Ketema

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=205055&r1=205054&r2=205055&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/float/definitions.h (original)
+++ libclc/trunk/generic/include/clc/float/definitions.h Fri Mar 28 16:19:03 2014
@@ -9,7 +9,8 @@
 #define FLT_MIN         0x1.0p-126f
 #define FLT_EPSILON     0x1.0p-23f
 
-#define M_PI_F 0x1.921fb6p+1
+#define M_LOG2E_F       0x1.715476p+0
+#define M_PI_F          0x1.921fb6p+1
 
 #ifdef cl_khr_fp64
 
@@ -23,4 +24,6 @@
 #define DBL_MIN         0x1.0p-1022
 #define DBL_EPSILON     0x1.0p-52
 
+#define M_LOG2E         0x1.71547652b82fep+0
+
 #endif





More information about the cfe-commits mailing list