diff options
author | Zephyron <zephyron@citron-emu.org> | 2024-12-31 22:54:55 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2024-12-31 22:54:55 +1000 |
commit | 2b5082b30d72dcf79409fa7850a5b0873dfa8815 (patch) | |
tree | cff25e6b309474ce13c98ddbcc529c78861e0ce4 /src/shader_recompiler/frontend/ir/flow_test.cpp | |
parent | 6f160628c084cbc30679af1142ec25e4b9e70bcf (diff) |
shader_recompiler: Use FPRecip in FSWZADD implementation
Simplifies the negative reciprocal calculation in FSWZADD by using the
dedicated FPRecip operation instead of manually constructing a division.
This change:
- Replaces FPDiv(Imm32(f32(1.0f)), src_b) with FPRecip(src_b)
- Results in more efficient code for calculating 1.0/x
- Fixes build errors from undefined IR emitter methods
Diffstat (limited to 'src/shader_recompiler/frontend/ir/flow_test.cpp')
0 files changed, 0 insertions, 0 deletions