diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-03-01 21:58:16 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:23 +0200 |
commit | 103b9da4f7115ff47eee52d0dbd31b5b7a18b257 (patch) | |
tree | 52e00b1766326559fad61cefa460b6666d2792c9 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
parent | shader: Implement ISET, add common_funcs (diff) | |
download | yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.tar yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.tar.gz yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.tar.bz2 yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.tar.lz yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.tar.xz yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.tar.zst yuzu-103b9da4f7115ff47eee52d0dbd31b5b7a18b257.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index 04edcdfd8..0f1cab57a 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp @@ -812,8 +812,16 @@ U32 IREmitter::BitCount(const U32& value) { return Inst<U32>(Opcode::BitCount32, value); } -U32 IREmitter::BitwiseNot(const U32& a) { - return Inst<U32>(Opcode::BitwiseNot32, a); +U32 IREmitter::BitwiseNot(const U32& value) { + return Inst<U32>(Opcode::BitwiseNot32, value); +} + +U32 IREmitter::FindSMsb(const U32& value) { + return Inst<U32>(Opcode::FindSMsb32, value); +} + +U32 IREmitter::FindUMsb(const U32& value) { + return Inst<U32>(Opcode::FindUMsb32, value); } U32 IREmitter::SMin(const U32& a, const U32& b) { |