[Libclc-dev] [PATCH] Add definition for M_PI_F v3

Tom Stellard thomas.stellard at amd.com
Fri Mar 21 16:54:07 PDT 2014


v2:
  - Use a hexadecimal constant.

v3:
  - Use a hexadecimal constant in floating-point notation.
---
 generic/include/clc/float/definitions.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/generic/include/clc/float/definitions.h b/generic/include/clc/float/definitions.h
index e6ef1d8..e747f45 100644
--- a/generic/include/clc/float/definitions.h
+++ b/generic/include/clc/float/definitions.h
@@ -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
-- 
1.8.1.5






More information about the Libclc-dev mailing list