summaryrefslogtreecommitdiffstats
path: root/util/system/atomic_gcc.h
diff options
context:
space:
mode:
authormelkov <[email protected]>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:14 +0300
commit2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/system/atomic_gcc.h
parent438546c8737d5c1fdeb31157dcf999717d930eec (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/atomic_gcc.h')
-rw-r--r--util/system/atomic_gcc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/atomic_gcc.h b/util/system/atomic_gcc.h
index 8838e3919c5..ed8dc2bdc53 100644
--- a/util/system/atomic_gcc.h
+++ b/util/system/atomic_gcc.h
@@ -1,5 +1,5 @@
#pragma once
-
+
#define ATOMIC_COMPILER_BARRIER() __asm__ __volatile__("" \
: \
: \
@@ -61,7 +61,7 @@ static inline intptr_t AtomicSwap(TAtomic* p, intptr_t v) {
__atomic_exchange(p, &v, &ret, __ATOMIC_SEQ_CST);
return ret;
}
-
+
static inline bool AtomicCas(TAtomic* a, intptr_t exchange, intptr_t compare) {
(void)a; // disable strange 'parameter set but not used' warning on gcc
return __atomic_compare_exchange(a, &compare, &exchange, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);