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
commit1715700d00b30399d3648be821fd585ae552365e (patch)
tree6857a59158ea36e56d87fb32fbb8e44673c0ca0f /util
parentb23c1d7a8015c2006a148fd93b84cdeb0aee17a3 (diff)
downloadydb-1715700d00b30399d3648be821fd585ae552365e.tar.gz
Restoring authorship annotation for <gusev-p@yandex-team.ru>. Commit 1 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 d4b3cca0af..4803c75a4a 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 b373edcc46..ad523479be 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 05fad02e9b..1b6745c272 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;
}