lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lightning] [PATCH] Use builtin for ffs too


From: Zachary Cook
Subject: [Lightning] [PATCH] Use builtin for ffs too
Date: Wed, 9 Oct 2019 15:12:50 -0400

---
 lib/jit_x86-cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/jit_x86-cpu.c b/lib/jit_x86-cpu.c
index ebba7bb..4627783 100644
--- a/lib/jit_x86-cpu.c
+++ b/lib/jit_x86-cpu.c
@@ -681,7 +681,7 @@ static void _vaarg_d(jit_state_t*, jit_int32_t, 
jit_int32_t, jit_bool_t);
 static void _patch_at(jit_state_t*, jit_node_t*, jit_word_t, jit_word_t);
 #  if !defined(HAVE_FFSL)
 #    if __X32
-#      define ffsl(i)                  ffs(i)
+#      define ffsl(i)                  __builtin_ffs(i)
 #    else
 #      define ffsl(l)                  __builtin_ffsl(l)
 #    endif
-- 
2.23.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]