mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-26 18:04:28 +01:00
2f45391ca5
Changes integer rounding to more closely meet the documentation The documentation explains to round before doing any bounds checks All this really does is make sure some exception bits won't be set wrong This depends on the rounding mode, fixing cases such as: - Round to even, (0x7fffffff, 0x7fffffff.8) - Round to down, (0x7fffffff, 0x80000000) This change also uses some standard functions for rounding Previously using them was casting to an s32 directly, now keeps the f64 RoundToIntegerMode introduced due to roundeven not being part of C++17 Finally, it can change a >0x7fffffff to >=0x80000000, done because: - It looks nicer now with integers (I liked 0s) - It gives ever so slightly better codegen on Aarch64 Co-Authored-By: JosJuice <josjuice@gmail.com> |
||
---|---|---|
.. | ||
Android | ||
Core | ||
DSPSpy | ||
DSPTool | ||
PCH | ||
UnitTests | ||
VSProps | ||
.clang-format | ||
CMakeLists.txt | ||
dolphin-emu.sln |