mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-04 05:56:46 +02: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.