aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/datetime.h
diff options
context:
space:
mode:
authoragri <agri@yandex-team.ru>2022-02-10 16:48:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:12 +0300
commit2909866fbc652492b7d7cab3023cb19489dc4fd8 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/system/datetime.h
parentd3530b2692e400bd4d29bd4f07cafaee139164e7 (diff)
downloadydb-2909866fbc652492b7d7cab3023cb19489dc4fd8.tar.gz
Restoring authorship annotation for <agri@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/datetime.h')
-rw-r--r--util/system/datetime.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/datetime.h b/util/system/datetime.h
index 9cc7d7fd60..aa009974e0 100644
--- a/util/system/datetime.h
+++ b/util/system/datetime.h
@@ -36,14 +36,14 @@ void NanoSleep(ui64 ns) noexcept;
// GetCycleCount guarantees to return synchronous values on different cores
// and provide constant rate only on modern Intel and AMD processors
-// NOTE: rdtscp is used to prevent out of order execution
-// rdtsc can be reordered, while rdtscp cannot be reordered
-// with preceding instructions
-// PERFORMANCE: rdtsc - 15 cycles per call , rdtscp - 19 cycles per call
-// WARNING: following instruction can be executed out-of-order
+// NOTE: rdtscp is used to prevent out of order execution
+// rdtsc can be reordered, while rdtscp cannot be reordered
+// with preceding instructions
+// PERFORMANCE: rdtsc - 15 cycles per call , rdtscp - 19 cycles per call
+// WARNING: following instruction can be executed out-of-order
Y_FORCE_INLINE ui64 GetCycleCount() noexcept {
#if defined(_MSC_VER)
- // Generates the rdtscp instruction, which returns the processor time stamp.
+ // Generates the rdtscp instruction, which returns the processor time stamp.
// The processor time stamp records the number of clock cycles since the last reset.
extern const bool HaveRdtscp;
@@ -82,7 +82,7 @@ Y_FORCE_INLINE ui64 GetCycleCount() noexcept {
#elif defined(_darwin_)
return mach_absolute_time();
#elif defined(__clang__) && !defined(_arm_)
- return __builtin_readcyclecounter();
+ return __builtin_readcyclecounter();
#elif defined(_arm32_)
return MicroSeconds();
#elif defined(_arm64_)