diff options
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_arit.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.h b/src/gallium/auxiliary/gallivm/lp_bld_arit.h index e76977cfb0b..622b930a937 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.h @@ -87,6 +87,21 @@ lp_build_div(struct lp_build_context *bld, LLVMValueRef b); +/* llvm.fmuladd.* intrinsic */ +LLVMValueRef +lp_build_fmuladd(LLVMBuilderRef builder, + LLVMValueRef a, + LLVMValueRef b, + LLVMValueRef c); + +/* a * b + c */ +LLVMValueRef +lp_build_mad(struct lp_build_context *bld, + LLVMValueRef a, + LLVMValueRef b, + LLVMValueRef c); + + /** * Set when the weights for normalized are prescaled, that is, in range * 0..2**n, as opposed to range 0..2**(n-1). |