diff options
author | Marek Olšák <[email protected]> | 2018-01-02 03:59:43 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-01-06 09:51:43 +0100 |
commit | a140aeb6195553efeab703e7e21b1d553eef205e (patch) | |
tree | 1ccb98bbef04be4bc22df1e5199748c964df03cc /src/amd/common/ac_llvm_build.h | |
parent | 581507f10aaa8a0239c9152501ad6f79aa61a08e (diff) |
ac: add ac_build_fmin/fmax helpers
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.h')
-rw-r--r-- | src/amd/common/ac_llvm_build.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index 3c81e2d43d3..e0fe0a58a46 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -244,7 +244,10 @@ LLVMValueRef ac_build_imsb(struct ac_llvm_context *ctx, LLVMValueRef ac_build_umsb(struct ac_llvm_context *ctx, LLVMValueRef arg, LLVMTypeRef dst_type); - +LLVMValueRef ac_build_fmin(struct ac_llvm_context *ctx, LLVMValueRef a, + LLVMValueRef b); +LLVMValueRef ac_build_fmax(struct ac_llvm_context *ctx, LLVMValueRef a, + LLVMValueRef b); LLVMValueRef ac_build_umin(struct ac_llvm_context *ctx, LLVMValueRef a, LLVMValueRef b); LLVMValueRef ac_build_clamp(struct ac_llvm_context *ctx, LLVMValueRef value); |