aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorelantsev <elantsev@yandex-team.ru>2022-02-10 16:49:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:47 +0300
commitafa1b6e6f8b6ee9f8df080d41bcb19b95c25c261 (patch)
tree0be08f6ef31456c320cbd3f575673be79c911588 /util/system
parent93452ad7de84fbd34e7ba9a906bf10ce1536d722 (diff)
downloadydb-afa1b6e6f8b6ee9f8df080d41bcb19b95c25c261.tar.gz
Restoring authorship annotation for <elantsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/context.cpp4
-rw-r--r--util/system/fasttime.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/util/system/context.cpp b/util/system/context.cpp
index ad99309088..f03be0cccc 100644
--- a/util/system/context.cpp
+++ b/util/system/context.cpp
@@ -1,4 +1,4 @@
-#include "compiler.h"
+#include "compiler.h"
#include "defaults.h"
#include "event.h"
#include "thread.h"
@@ -195,7 +195,7 @@ TContMachineContext::TContMachineContext(const TContClosure& c)
}
void TContMachineContext::SwitchTo(TContMachineContext* next) noexcept {
- if (Y_LIKELY(__mysetjmp(Buf_) == 0)) {
+ if (Y_LIKELY(__mysetjmp(Buf_) == 0)) {
#if defined(_asan_enabled_) || defined(_tsan_enabled_)
next->San_.BeforeSwitch(&San_);
#endif
diff --git a/util/system/fasttime.cpp b/util/system/fasttime.cpp
index 057a814f0a..5f6ce4e218 100644
--- a/util/system/fasttime.cpp
+++ b/util/system/fasttime.cpp
@@ -136,9 +136,9 @@ namespace {
inline void Add(const TSample& s) noexcept {
S_[(C_++) % N] = s;
- if (C_ > 1) {
- ReCalc();
- }
+ if (C_ > 1) {
+ ReCalc();
+ }
}
inline B Predict(A a) const noexcept {