[Mesa-dev] [PATCH libclc] Add bitselect builtin

Aaron Watry awatry at gmail.com
Thu May 23 15:24:37 PDT 2013


Reviewed-by: Aaron Watry <awatry at gmail.com>

Please also send the attached test patch (or an expanded version of
it) to the piglit list.

On Thu, May 23, 2013 at 12:48 PM, Tom Stellard <tom at stellard.net> wrote:
> From: Tom Stellard <thomas.stellard at amd.com>
>
> ---
>  generic/include/clc/clc.h                  | 1 +
>  generic/include/clc/relational/bitselect.h | 1 +
>  2 files changed, 2 insertions(+)
>  create mode 100644 generic/include/clc/relational/bitselect.h
>
> diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
> index d2858a8..b53a217 100644
> --- a/generic/include/clc/clc.h
> +++ b/generic/include/clc/clc.h
> @@ -80,6 +80,7 @@
>
>  /* 6.11.6 Relational Functions */
>  #include <clc/relational/any.h>
> +#include <clc/relational/bitselect.h>
>  #include <clc/relational/select.h>
>
>  /* 6.11.8 Synchronization Functions */
> diff --git a/generic/include/clc/relational/bitselect.h b/generic/include/clc/relational/bitselect.h
> new file mode 100644
> index 0000000..e91cbfd
> --- /dev/null
> +++ b/generic/include/clc/relational/bitselect.h
> @@ -0,0 +1 @@
> +#define bitselect(x, y, z) ((x) ^ ((z) & ((y) ^ (x))))
> --
> 1.8.1.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CL-Basic-test-of-bitselect-builtin.patch
Type: application/octet-stream
Size: 1076 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130523/1020cace/attachment-0001.obj>


More information about the mesa-dev mailing list