diff options
| author | Feng Chen <vonchenplus@gmail.com> | 2026-09-17 19:50:19 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-09-17 19:50:19 +0200 |
| commit | 0ce29be60874b24890ab9239cecf1bd67b924428 (patch) | |
| tree | d0cf498acff9c64e3f6521290184fc0efc85e287 /src/core/file_sys/registered_cache.cpp | |
| parent | 1203082a8f1211ad6ce4d95f0c6947f7ecd27a55 (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/registered_cache.cpp')
0 files changed, 0 insertions, 0 deletions
