diff options
author | José Fonseca <[email protected]> | 2010-10-06 17:44:05 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-10-06 18:46:59 +0100 |
commit | 012d57737b1b4e4263aa3414abe433195ff8a713 (patch) | |
tree | b138b67fe88cb4bd436c06904d6310ef78872001 /src/gallium/auxiliary/gallivm/lp_bld_arit.h | |
parent | 4648846bd6c376877f024ccf300ceac5b0b3dcd6 (diff) |
gallivm: Fast implementation of iround(log2(x))
Not tested yet, but should be correct.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_arit.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h index 3ed4fec2333..f36197479f0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h @@ -216,6 +216,10 @@ LLVMValueRef lp_build_fast_log2(struct lp_build_context *bld, LLVMValueRef a); +LLVMValueRef +lp_build_ilog2(struct lp_build_context *bld, + LLVMValueRef x); + void lp_build_exp2_approx(struct lp_build_context *bld, |