dolphin/Source
Geotale 2f45391ca5 Improve Integer Rounding Accuracy
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>
2024-09-03 11:17:24 -05:00
..
Android Merge pull request #12965 from JosJuice/android-ndk-27 2024-07-30 13:09:53 -04:00
Core Improve Integer Rounding Accuracy 2024-09-03 11:17:24 -05:00
DSPSpy
DSPTool TAS Input: Enable hotkeys and controller input when Input has focus 2024-05-31 15:14:44 -07:00
PCH
UnitTests Add Unit Test for Patch Allowlist 2024-07-07 21:29:03 +02:00
VSProps Migrate Vulkan-Headers to submodule and update to v1.3.288 2024-06-22 08:03:20 +02:00
.clang-format
CMakeLists.txt CMakeLists: Add Clang's Specific WShadow Diagnostics 2024-03-09 15:34:39 -08:00
dolphin-emu.sln Externals: Convert minizip-ng To Submodule 2024-05-03 12:43:33 -07:00