From 402f54b0d1f69a2231e42b726ebaf8a726efa307 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 23 Feb 2010 21:16:18 -0700 Subject: gallivm: added clamp and int_to_float functions --- src/gallium/auxiliary/gallivm/lp_bld_arit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gallium/auxiliary/gallivm/lp_bld_arit.h') diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h index 62be4b9aee..da84b7ca02 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h @@ -106,6 +106,12 @@ lp_build_max(struct lp_build_context *bld, LLVMValueRef a, 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); @@ -114,6 +120,10 @@ LLVMValueRef 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); -- cgit v1.2.3