summaryrefslogtreecommitdiffstats
path: root/util/system/compiler.h
diff options
context:
space:
mode:
authorgusev-p <[email protected]>2022-02-10 16:47:20 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:20 +0300
commit1715700d00b30399d3648be821fd585ae552365e (patch)
tree6857a59158ea36e56d87fb32fbb8e44673c0ca0f /util/system/compiler.h
parentb23c1d7a8015c2006a148fd93b84cdeb0aee17a3 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 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 b373edcc466..ad523479be6 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