[libclc] r185836 - Add bitselect() builtin

Tom Stellard thomas.stellard at amd.com
Mon Jul 8 10:26:33 PDT 2013


Author: tstellar
Date: Mon Jul  8 12:26:33 2013
New Revision: 185836

URL: http://llvm.org/viewvc/llvm-project?rev=185836&view=rev
Log:
Add bitselect() builtin

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

Added:
    libclc/trunk/generic/include/clc/relational/bitselect.h
Modified:
    libclc/trunk/generic/include/clc/clc.h

Modified: libclc/trunk/generic/include/clc/clc.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clc.h?rev=185836&r1=185835&r2=185836&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Mon Jul  8 12:26:33 2013
@@ -82,6 +82,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 */

Added: libclc/trunk/generic/include/clc/relational/bitselect.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/relational/bitselect.h?rev=185836&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/relational/bitselect.h (added)
+++ libclc/trunk/generic/include/clc/relational/bitselect.h Mon Jul  8 12:26:33 2013
@@ -0,0 +1 @@
+#define bitselect(x, y, z) ((x) ^ ((z) & ((y) ^ (x))))





More information about the cfe-commits mailing list