diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-07-08 17:26:33 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-07-08 17:26:33 +0000 |
commit | a3c59c98a5ae7d4af0c2ac0194422a466a8891cc (patch) | |
tree | 17cd60636bd3f0204e48d5cd476f075afee99d7b /generic/include/clc | |
parent | 4ab90369cbe2ef489df88726d9be223fb1847c6f (diff) |
Add bitselect() builtin
Reviewed-By: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@185836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic/include/clc')
-rw-r--r-- | generic/include/clc/clc.h | 1 | ||||
-rw-r--r-- | generic/include/clc/relational/bitselect.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h index 10d30e0..1ce97ad 100644 --- a/generic/include/clc/clc.h +++ b/generic/include/clc/clc.h @@ -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 */ 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)))) |