aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/savedata_factory.cpp
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2026-09-17 19:50:19 +0200
committercrueter <crueter@eden-emu.dev>2026-09-17 19:50:19 +0200
commit0ce29be60874b24890ab9239cecf1bd67b924428 (patch)
treed0cf498acff9c64e3f6521290184fc0efc85e287 /src/core/file_sys/savedata_factory.cpp
parent1203082a8f1211ad6ce4d95f0c6947f7ecd27a55 (diff)
[common] Fix RDTSC nanosecond conversion (#4422)
Split the RDTSC ticks-per-nanosecond ratio into integer and Q0.64 fractional components. This avoids overflowing GetFixedPoint64Factor for TSC frequencies above 1 GHz while preserving the multiply-only conversion path. Use the invariant clock only above 1 GHz because the reverse nanoseconds-per-tick factor cannot represent an exact ratio of one. - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4422 Reviewed-by: lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/core/file_sys/savedata_factory.cpp')
0 files changed, 0 insertions, 0 deletions