[Beignet] [PATCH] add 64-bit version of "bitselect"

Homer Hsing homer.xing at intel.com
Sun Sep 1 19:59:51 PDT 2013


Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
 backend/src/ocl_stdlib.tmpl.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h
index d8e8afc..ec49987 100644
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -258,6 +258,7 @@ DEC(16);
 
 #define DEF(type) INLINE_OVERLOADABLE type bitselect(type a, type b, type c) { return (a & ~c) | (b & c); }
 DEF(char); DEF(uchar); DEF(short); DEF(ushort); DEF(int); DEF(uint)
+DEF(long); DEF(ulong)
 #undef DEF
 INLINE_OVERLOADABLE float bitselect(float a, float b, float c) {
   return as_float(bitselect(as_int(a), as_int(b), as_int(c)));
-- 
1.8.1.2



More information about the Beignet mailing list