aboutsummaryrefslogtreecommitdiff
path: root/src/inputhud.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/inputhud.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/inputhud.c')
-rw-r--r--src/inputhud.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputhud.c b/src/inputhud.c
index 2620f3c..fbcbe79 100644
--- a/src/inputhud.c
+++ b/src/inputhud.c
@@ -151,7 +151,7 @@ static inline int bsf(uint x) {
// a false dependency on many CPUs, which compilers don't understand somehow
int ret = 0;
#if defined(__GNUC__) || defined(__clang__)
- __asm__ volatile (
+ __asm volatile (
"bsf %0, %1\n"
: "+r" (ret)
: "r" (x)