[Beignet] [PATCH] add built-in function "islessgreater"

Zhigang Gong zhigang.gong at linux.intel.com
Sun Jul 28 22:13:59 PDT 2013


LGTM, pushed, thanks.

On Mon, Jul 29, 2013 at 10:20:33AM +0800, Homer Hsing wrote:
> 
> 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
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list