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

Zhigang Gong zhigang.gong at linux.intel.com
Mon Sep 2 22:38:54 PDT 2013


LGTM, will push it latter, thanks.

On Mon, Sep 02, 2013 at 10:59:51AM +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 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
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list