summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_arit.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-10-09 12:11:20 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-10-09 12:12:59 +0100
commit81a09c8a975ec1e727a7863823e39549c5096746 (patch)
treed617e8a8f5b1cc60b5f2e145adc6ad1f3abf14f3 /src/gallium/auxiliary/gallivm/lp_bld_arit.h
parent52427f0ba703f933b70d669ae565c7aeb733236d (diff)
gallivm: Less code duplication in log computation.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_arit.h')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_arit.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h
index 8424384f8f..c78b61decf 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h
@@ -215,6 +215,15 @@ lp_build_exp2(struct lp_build_context *bld,
LLVMValueRef a);
LLVMValueRef
+lp_build_extract_exponent(struct lp_build_context *bld,
+ LLVMValueRef x,
+ int bias);
+
+LLVMValueRef
+lp_build_extract_mantissa(struct lp_build_context *bld,
+ LLVMValueRef x);
+
+LLVMValueRef
lp_build_log2(struct lp_build_context *bld,
LLVMValueRef a);
@@ -226,7 +235,6 @@ LLVMValueRef
lp_build_ilog2(struct lp_build_context *bld,
LLVMValueRef x);
-
void
lp_build_exp2_approx(struct lp_build_context *bld,
LLVMValueRef x,