[Beignet] [PATCH] add built-in function "islessgreater"
Homer Hsing
homer.xing at intel.com
Sun Jul 28 19:20:33 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 6efce0e..003eedc 100644
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -172,6 +172,7 @@ int INLINE_OVERLOADABLE isgreater(float x, float y) { return x > y; }
int INLINE_OVERLOADABLE isgreaterequal(float x, float y) { return x >= y; }
int INLINE_OVERLOADABLE isless(float x, float y) { return x < y; }
int INLINE_OVERLOADABLE islessequal(float x, float y) { return x <= y; }
+int INLINE_OVERLOADABLE islessgreater(float x, float y) { return (x < y) || (x > y); }
#define SDEF(TYPE) \
OVERLOADABLE TYPE ocl_sadd_sat(TYPE x, TYPE y); \
--
1.8.1.2
More information about the Beignet
mailing list