summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_arit.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-10-06 14:06:14 +0100
committerJosé Fonseca <[email protected]>2010-10-06 18:46:29 +0100
commit4648846bd6c376877f024ccf300ceac5b0b3dcd6 (patch)
tree46bab37d4f04b5ff498de00495db0684f7b5338c /src/gallium/auxiliary/gallivm/lp_bld_arit.h
parentdf3505b19341424a605be703a27f50ea585ad71f (diff)
gallivm: Use a faster (and less accurate) log2 in lod computation.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_arit.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h
index 31efa9921ce..3ed4fec2333 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h
@@ -212,6 +212,11 @@ LLVMValueRef
lp_build_log2(struct lp_build_context *bld,
LLVMValueRef a);
+LLVMValueRef
+lp_build_fast_log2(struct lp_build_context *bld,
+ LLVMValueRef a);
+
+
void
lp_build_exp2_approx(struct lp_build_context *bld,
LLVMValueRef x,