mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-08 16:49:50 -06:00
Optimize division by a constant into multiplication. This method is also used by GCC and LLVM. We also add optimized paths for divisors 0, 1, and -1, because they don't work using this method. They don't occur very often, but are necessary for correctness.