diff options
author | Merry <git@mary.rs> | 2022-03-29 00:06:04 +0200 |
---|---|---|
committer | merry <git@mary.rs> | 2022-04-02 21:55:36 +0200 |
commit | c562c1d6be01e27b0725650fcce743b3da5a1828 (patch) | |
tree | 8e3437c75ec44e127274a07b8762f7a45b1d7a28 /src/common | |
parent | atomic_ops: Implement AtomicLoad128 (diff) | |
download | yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.tar yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.tar.gz yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.tar.bz2 yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.tar.lz yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.tar.xz yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.tar.zst yuzu-c562c1d6be01e27b0725650fcce743b3da5a1828.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/x64/native_clock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp index 347e41efc..2a2664e5d 100644 --- a/src/common/x64/native_clock.cpp +++ b/src/common/x64/native_clock.cpp @@ -56,7 +56,7 @@ u64 NativeClock::GetRTSC() { TimePoint new_time_point{}; TimePoint current_time_point{}; do { - current_time_point.pack = time_point.pack; + current_time_point.pack = Common::AtomicLoad128(time_point.pack.data()); _mm_mfence(); const u64 current_measure = __rdtsc(); u64 diff = current_measure - current_time_point.inner.last_measure; @@ -76,7 +76,7 @@ void NativeClock::Pause(bool is_paused) { TimePoint current_time_point{}; TimePoint new_time_point{}; do { - current_time_point.pack = time_point.pack; + current_time_point.pack = Common::AtomicLoad128(time_point.pack.data()); new_time_point.pack = current_time_point.pack; _mm_mfence(); new_time_point.inner.last_measure = __rdtsc(); |