From b11cf48853bc4eccde60bc82180025f0797fa823 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 3 Aug 2025 15:29:48 +0100 Subject: 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. --- src/inputhud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inputhud.c') 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) -- cgit v1.2.3-54-g00ecf