diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-07-27 13:08:01 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-07-27 13:09:46 +0100 |
commit | 2a45972fb2ba12a6561e5cba84d167f4c30566d4 (patch) | |
tree | eaef9a51116809ced9f5923b13b9caf2a75c60a0 /src/gallium/auxiliary/gallivm/lp_bld_logic.h | |
parent | fef5ae949fd71419bb2a25f0944f0b50e60a668a (diff) |
gallivm: Add lp_build_select_bitwise() alternative to lp_build_select_bitwise
When
(mask & a) | (~mask & b)
is meant instead of
mask ? a : b
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_logic.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_logic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_logic.h b/src/gallium/auxiliary/gallivm/lp_bld_logic.h index 29f9fc3b20..4e7b4c9938 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_logic.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_logic.h @@ -63,6 +63,11 @@ lp_build_cmp(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); +LLVMValueRef +lp_build_select_bitwise(struct lp_build_context *bld, + LLVMValueRef mask, + LLVMValueRef a, + LLVMValueRef b); LLVMValueRef lp_build_select(struct lp_build_context *bld, |