diff options
author | Aaron Watry <awatry@gmail.com> | 2013-05-29 10:33:57 -0500 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-05-29 10:33:57 -0500 |
commit | 38982ace51e1e1892c2357530e4e733ce547647d (patch) | |
tree | 4523789b481dbc14c32ea4ee2f9ee0b5c25381bc | |
parent | c655e963619d5a96a3f0a36f9e50da2743554229 (diff) |
libclc: Implement bitselect builtin
From: Tom Stellard <thomas.stellard at amd.com>
-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 ffa2a24..dfdf747 100644 --- a/generic/include/clc/clc.h +++ b/generic/include/clc/clc.h @@ -84,6 +84,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)))) |