mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 20:04:31 +01:00
Without the Zbb extension, clz, rotr, wsbh, wsbw, bitrev, min and max went to the IR interpreter, and wsbh always did. They're now base ISA sequences: a branchless binary search for clz, paired shifts for the rotates and byte swaps, mask-and-shift steps for bitrev, and a compare-and-branch for min and max. Checked against a model of the instructions over random inputs, since nothing here runs RISC-V. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>