gallivm: added lp_build_negate()

This commit is contained in:
Brian Paul 2010-03-04 08:36:26 -07:00
parent 38110fd1c3
commit 7d230dae70
2 changed files with 12 additions and 0 deletions

View file

@ -668,6 +668,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)

View file

@ -116,6 +116,10 @@ LLVMValueRef
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);