diff options
author | Brian Paul <[email protected]> | 2010-02-23 21:16:18 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-23 21:16:18 -0700 |
commit | 402f54b0d1f69a2231e42b726ebaf8a726efa307 (patch) | |
tree | 1cebaf34b52a5c43103007d5603c0c9200eb959b /src/gallium/auxiliary/gallivm/lp_bld_arit.h | |
parent | 1eec90d660052a597db08332141f1ffee1570209 (diff) |
gallivm: added clamp and int_to_float functions
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_arit.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h index 62be4b9aee1..da84b7ca02d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h @@ -107,6 +107,12 @@ lp_build_max(struct lp_build_context *bld, LLVMValueRef b); LLVMValueRef +lp_build_clamp(struct lp_build_context *bld, + LLVMValueRef a, + LLVMValueRef min, + LLVMValueRef max); + +LLVMValueRef lp_build_abs(struct lp_build_context *bld, LLVMValueRef a); @@ -115,6 +121,10 @@ lp_build_sgn(struct lp_build_context *bld, LLVMValueRef a); LLVMValueRef +lp_build_int_to_float(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef lp_build_round(struct lp_build_context *bld, LLVMValueRef a); |