aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorgusev-p <gusev-p@yandex-team.ru>2022-02-10 16:47:20 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:20 +0300
commit47af3b5bf148ddab250833ec454d30d7c4930c31 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util
parent1715700d00b30399d3648be821fd585ae552365e (diff)
downloadydb-47af3b5bf148ddab250833ec454d30d7c4930c31.tar.gz
Restoring authorship annotation for <gusev-p@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/system/compiler.cpp6
-rw-r--r--util/system/compiler.h24
-rw-r--r--util/thread/pool.cpp2
3 files changed, 16 insertions, 16 deletions
diff --git a/util/system/compiler.cpp b/util/system/compiler.cpp
index 4803c75a4a..d4b3cca0af 100644
--- a/util/system/compiler.cpp
+++ b/util/system/compiler.cpp
@@ -4,6 +4,6 @@
[[noreturn]] Y_HIDDEN void _YandexAbort() {
std::abort();
}
-
-void UseCharPointerImpl(volatile const char*) {
-}
+
+void UseCharPointerImpl(volatile const char*) {
+}
diff --git a/util/system/compiler.h b/util/system/compiler.h
index ad523479be..b373edcc46 100644
--- a/util/system/compiler.h
+++ b/util/system/compiler.h
@@ -1,9 +1,9 @@
#pragma once
-#if defined(_MSC_VER)
+#if defined(_MSC_VER)
#include <intrin.h>
-#endif
-
+#endif
+
// useful cross-platfrom definitions for compilers
/**
@@ -623,11 +623,11 @@ _YandexAbort();
do { \
} while (0)
#endif
-
-#ifdef __cplusplus
-
+
+#ifdef __cplusplus
+
void UseCharPointerImpl(volatile const char*);
-
+
template <typename T>
Y_FORCE_INLINE void DoNotOptimizeAway(T&& datum) {
#if defined(_MSC_VER)
@@ -641,10 +641,10 @@ Y_FORCE_INLINE void DoNotOptimizeAway(T&& datum) {
Y_FAKE_READ(datum);
#endif
}
-
+
/**
- * Use this macro to prevent unused variables elimination.
- */
+ * Use this macro to prevent unused variables elimination.
+ */
#define Y_DO_NOT_OPTIMIZE_AWAY(X) ::DoNotOptimizeAway(X)
-
-#endif
+
+#endif
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp
index 1b6745c272..05fad02e9b 100644
--- a/util/thread/pool.cpp
+++ b/util/thread/pool.cpp
@@ -147,7 +147,7 @@ public:
return ThreadCountReal;
}
- inline void AtforkAction() noexcept Y_NO_SANITIZE("thread") {
+ inline void AtforkAction() noexcept Y_NO_SANITIZE("thread") {
Forked = true;
}