[Libclc-dev] [PATCH 1/3] geometric/floatn.inc: Add vec8 and vec16 types

Tom Stellard thomas.stellard at amd.com
Tue Feb 24 12:15:52 PST 2015


---
 generic/include/clc/geometric/floatn.inc | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/generic/include/clc/geometric/floatn.inc b/generic/include/clc/geometric/floatn.inc
index fb7a9ae..b683b85 100644
--- a/generic/include/clc/geometric/floatn.inc
+++ b/generic/include/clc/geometric/floatn.inc
@@ -16,6 +16,14 @@
 #include __CLC_BODY
 #undef __CLC_FLOATN
 
+#define __CLC_FLOATN float8
+#include __CLC_BODY
+#undef __CLC_FLOATN
+
+#define __CLC_FLOATN float16
+#include __CLC_BODY
+#undef __CLC_FLOATN
+
 #undef __CLC_FLOAT
 
 #ifdef cl_khr_fp64
@@ -38,6 +46,14 @@
 #include __CLC_BODY
 #undef __CLC_FLOATN
 
+#define __CLC_FLOATN double8
+#include __CLC_BODY
+#undef __CLC_FLOATN
+
+#define __CLC_FLOATN double16
+#include __CLC_BODY
+#undef __CLC_FLOATN
+
 #undef __CLC_FLOAT
 
 #endif
-- 
2.0.4




More information about the Libclc-dev mailing list