aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/compiler.h
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/system/compiler.h
parent1715700d00b30399d3648be821fd585ae552365e (diff)
downloadydb-47af3b5bf148ddab250833ec454d30d7c4930c31.tar.gz
Restoring authorship annotation for <gusev-p@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/compiler.h')
-rw-r--r--util/system/compiler.h24
1 files changed, 12 insertions, 12 deletions
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