projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
481d91f
)
add built-in function "islessgreater"
author
Homer Hsing
<homer.xing@intel.com>
Mon, 29 Jul 2013 02:20:33 +0000
(10:20 +0800)
committer
Zhigang Gong
<zhigang.gong@linux.intel.com>
Mon, 29 Jul 2013 05:12:09 +0000
(13:12 +0800)
Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ocl_stdlib.tmpl.h
patch
|
blob
|
history
diff --git
a/backend/src/ocl_stdlib.tmpl.h
b/backend/src/ocl_stdlib.tmpl.h
index
5badd56
..
1bf9fdc
100644
(file)
--- 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); \