Explorar o código

Common/NativeClockx86: Reduce native clock accuracy further.

Fernando Sahmkow %!s(int64=6) %!d(string=hai) anos
pai
achega
3165152396
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/x64/native_clock.h

+ 1 - 1
src/common/x64/native_clock.h

@@ -34,7 +34,7 @@ private:
     /// value used to reduce the native clocks accuracy as some apss rely on
     /// value used to reduce the native clocks accuracy as some apss rely on
     /// undefined behavior where the level of accuracy in the clock shouldn't
     /// undefined behavior where the level of accuracy in the clock shouldn't
     /// be higher.
     /// be higher.
-    static constexpr u64 inaccuracy_mask = ~(0x100 - 1);
+    static constexpr u64 inaccuracy_mask = ~(0x400 - 1);
 
 
     SpinLock rtsc_serialize{};
     SpinLock rtsc_serialize{};
     u64 last_measure{};
     u64 last_measure{};