mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
gallivm: added lp_build_negate()
This commit is contained in:
parent
38110fd1c3
commit
7d230dae70
2 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue