From 57907e7fd9fc63b9023d0e2b08934c2d0acf2953 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 12 Aug 2009 12:42:06 +0100 Subject: llvmpipe: Translate approximate log2/exp2. --- src/gallium/drivers/llvmpipe/lp_bld_arit.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/gallium/drivers/llvmpipe/lp_bld_arit.h') diff --git a/src/gallium/drivers/llvmpipe/lp_bld_arit.h b/src/gallium/drivers/llvmpipe/lp_bld_arit.h index 9f8fccb0d4..fc8cb25966 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_arit.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_arit.h @@ -126,4 +126,18 @@ LLVMValueRef lp_build_log2(struct lp_build_context *bld, LLVMValueRef a); +void +lp_build_exp2_approx(struct lp_build_context *bld, + LLVMValueRef x, + LLVMValueRef *p_exp2_int_part, + LLVMValueRef *p_frac_part, + LLVMValueRef *p_exp2); + +void +lp_build_log2_approx(struct lp_build_context *bld, + LLVMValueRef x, + LLVMValueRef *p_exp, + LLVMValueRef *p_floor_log2, + LLVMValueRef *p_log2); + #endif /* !LP_BLD_ARIT_H */ -- cgit v1.2.3