diff options
author | José Fonseca <[email protected]> | 2009-08-11 13:09:35 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:29 +0100 |
commit | 8422f293ab7bf1ff1adf105ed3240b1627538d34 (patch) | |
tree | 04a94bb39e3331d2d6bc4e5652598764e1c62e51 /src/gallium/drivers/llvmpipe/lp_bld_arit.h | |
parent | 36249348ed6dfae63ef2b81e6db88c975a801f2a (diff) |
llvmpipe: More arithmetic ops.
Mostly untested.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_arit.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_bld_arit.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_arit.h b/src/gallium/drivers/llvmpipe/lp_bld_arit.h index 35961eb9c8b..2545d2cdfb4 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_arit.h +++ b/src/gallium/drivers/llvmpipe/lp_bld_arit.h @@ -67,6 +67,11 @@ lp_build_mul(struct lp_build_context *bld, LLVMValueRef b); LLVMValueRef +lp_build_div(struct lp_build_context *bld, + LLVMValueRef a, + LLVMValueRef b); + +LLVMValueRef lp_build_min(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); @@ -76,5 +81,33 @@ lp_build_max(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b); +LLVMValueRef +lp_build_abs(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef +lp_build_sqrt(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef +lp_build_rcp(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef +lp_build_rsqrt(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef +lp_build_cos(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef +lp_build_sin(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef +lp_build_pow(struct lp_build_context *bld, + LLVMValueRef a, + LLVMValueRef b); #endif /* !LP_BLD_ARIT_H */ |