From: Homer Hsing Date: Mon, 29 Jul 2013 02:20:33 +0000 (+0800) Subject: add built-in function "islessgreater" X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=151853a5b16d199ae312cba7ce866d5d2fc86153;p=contrib%2Fbeignet.git add built-in function "islessgreater" Signed-off-by: Homer Hsing Reviewed-by: Zhigang Gong --- diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index 5badd56..1bf9fdc 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); \