[libclc] r213321 - Add several missing double constant definitions

Aaron Watry awatry at gmail.com
Thu Jul 17 15:07:35 PDT 2014


Author: awatry
Date: Thu Jul 17 17:07:35 2014
New Revision: 213321

URL: http://llvm.org/viewvc/llvm-project?rev=213321&view=rev
Log:
Add several missing double constant definitions

These were present in CL 1.0, just not implemented yet.

v2: Use hex values and fix commit message

Signed-off-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Jeroen Ketema <j.ketema at imperial.ac.uk>
CC: Matt Arsenault <Matthew.Arsenault at amd.com>

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=213321&r1=213320&r2=213321&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/float/definitions.h (original)
+++ libclc/trunk/generic/include/clc/float/definitions.h Thu Jul 17 17:07:35 2014
@@ -42,8 +42,19 @@
 #define DBL_MIN         0x1.0p-1022
 #define DBL_EPSILON     0x1.0p-52
 
+#define M_E             0x1.5bf0a8b145769p+1
 #define M_LOG2E         0x1.71547652b82fep+0
+#define M_LOG10E        0x1.bcb7b1526e50ep-2
+#define M_LN2           0x1.62e42fefa39efp-1
+#define M_LN10          0x1.26bb1bbb55516p+1
 #define M_PI            0x1.921fb54442d18p+1
+#define M_PI_2          0x1.921fb54442d18p+0
+#define M_PI_4          0x1.921fb54442d18p-1
+#define M_1_PI          0x1.45f306dc9c883p-2
+#define M_2_PI          0x1.45f306dc9c883p-1
+#define M_2_SQRTPI      0x1.20dd750429b6dp+0
+#define M_SQRT2         0x1.6a09e667f3bcdp+0
+#define M_SQRT1_2       0x1.6a09e667f3bcdp-1
 
 #endif
 





More information about the cfe-commits mailing list