notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fff9a1d
)
lightrec: fixup for old compilers
author
notaz
<notasas@gmail.com>
Sun, 30 Mar 2025 00:08:06 +0000
(
02:08
+0200)
committer
notaz
<notasas@gmail.com>
Sun, 30 Mar 2025 00:08:06 +0000
(
02:08
+0200)
deps/lightrec/lightrec.c
patch
|
blob
|
blame
|
history
diff --git
a/deps/lightrec/lightrec.c
b/deps/lightrec/lightrec.c
index
c8e91b7
..
488ceb2
100644
(file)
--- a/
deps/lightrec/lightrec.c
+++ b/
deps/lightrec/lightrec.c
@@
-567,12
+567,13
@@
static void lightrec_mtc0(struct lightrec_state *state, u8 reg, u32 data)
static u32 count_leading_bits(s32 data)
{
-#if defined(__has_builtin) && __has_builtin(__builtin_clrsb)
+#ifdef __has_builtin
+#if __has_builtin(__builtin_clrsb)
return 1 + __builtin_clrsb(data);
-#else
+#endif
+#endif
data ^= data >> 31;
return data ? clz32(data) : 32;
-#endif
}
static void lightrec_mtc2(struct lightrec_state *state, u8 reg, u32 data)