aboutsummaryrefslogtreecommitdiff
path: root/src/chunklets/fastspin.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-03 15:29:48 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-03 15:29:48 +0100
commitb11cf48853bc4eccde60bc82180025f0797fa823 (patch)
tree7244ab889590066ff2a26ba3c1f475e7dae79130 /src/chunklets/fastspin.c
parent9853d19b4de3e66138da8b3e66ccdaea356ea35b (diff)
downloadsst-b11cf48853bc4eccde60bc82180025f0797fa823.tar.gz
sst-b11cf48853bc4eccde60bc82180025f0797fa823.zip
Use shorter spellings of __asm and __attribute
Turns out, there's no need for the trailing underscores. Plus, glibc does some stupid stuff with __attribute__ for non-GCC compilers. Not that that matters here, but it seems like a good practice just to use the forms that never have such problems. And it's shorter too.
Diffstat (limited to 'src/chunklets/fastspin.c')
-rw-r--r--src/chunklets/fastspin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chunklets/fastspin.c b/src/chunklets/fastspin.c
index e972b23..d349395 100644
--- a/src/chunklets/fastspin.c
+++ b/src/chunklets/fastspin.c
@@ -29,12 +29,12 @@ _Static_assert(_Alignof(int) == _Alignof(_Atomic int),
#if defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)
#if defined(__i386__) || defined(__x86_64__) || defined(_WIN32) || \
defined(__mips__) // same asm syntax for pause
-#define RELAX() __asm__ volatile ("pause" ::: "memory")
+#define RELAX() __asm volatile ("pause" ::: "memory")
#elif defined(__arm__) || defined(__aarch64__)
-#define RELAX() __asm__ volatile ("yield" ::: "memory")
+#define RELAX() __asm volatile ("yield" ::: "memory")
#elif defined(__powerpc__) || defined(__ppc64__)
// POWER7 (2010) - older arches may be less efficient
-#define RELAX() __asm__ volatile ("or 27, 27, 27" ::: "memory")
+#define RELAX() __asm volatile ("or 27, 27, 27" ::: "memory")
#endif
#elif defined(_MSC_VER)
#if defined(_M_ARM) || defined(_M_ARM64)