Author: tstellar
Date: Mon Mar 24 15:36:44 2014
New Revision: 204666
URL: http://llvm.org/viewvc/llvm-project?rev=204666&view=rev
Log:
Add definition for M_PI_F v3
v2:
- Use a hexadecimal constant.
v3:
- Use a hexadecimal constant in floating-point notation.
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=204666&r1=204665&r2=204666&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/float/definitions.h (original)
+++ libclc/trunk/generic/include/clc/float/definitions.h Mon Mar 24 15:36:44
2014
@@ -9,6 +9,8 @@
#define FLT_MIN 0x1.0p-126f
#define FLT_EPSILON 0x1.0p-23f
+#define M_PI_F 0x1.921fb6p+1
+
#ifdef cl_khr_fp64
#define DBL_DIG 15
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits