diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-04 08:36:26 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-04 10:53:26 -0700 |
commit | 7d230dae70e8caa67cc6bd7501f892d44c40a5d4 (patch) | |
tree | 0c216c9c966fd28f09be5f2cf59cc5bd2c361c20 | |
parent | 38110fd1c3a6c57d1ff089d546a3456ca1a78da8 (diff) | |
download | external_mesa3d-7d230dae70e8caa67cc6bd7501f892d44c40a5d4.zip external_mesa3d-7d230dae70e8caa67cc6bd7501f892d44c40a5d4.tar.gz external_mesa3d-7d230dae70e8caa67cc6bd7501f892d44c40a5d4.tar.bz2 |
gallivm: added lp_build_negate()
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.c | 8 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.h | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c index bbce31f..f60a7a2 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c @@ -669,6 +669,14 @@ lp_build_abs(struct lp_build_context *bld, LLVMValueRef +lp_build_negate(struct lp_build_context *bld, + LLVMValueRef a) +{ + return LLVMBuildNeg(bld->builder, a, ""); +} + + +LLVMValueRef lp_build_sgn(struct lp_build_context *bld, LLVMValueRef a) { diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h index da84b7c..2d19ec0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h @@ -117,6 +117,10 @@ lp_build_abs(struct lp_build_context *bld, LLVMValueRef a); LLVMValueRef +lp_build_negate(struct lp_build_context *bld, + LLVMValueRef a); + +LLVMValueRef lp_build_sgn(struct lp_build_context *bld, LLVMValueRef a); |