From f3718ab9fb1f9ffc16342b9b5362acd7ec631ed9 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Sat, 29 Jan 2022 15:48:42 +0100 Subject: [PATCH] bugfix bit_for_each64_2 --- c/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/bits.h b/c/bits.h index fd32c3a..5f2ea68 100644 --- a/c/bits.h +++ b/c/bits.h @@ -162,6 +162,6 @@ static inline int popcount64(u64 n) /** or would it be more useful (counting bits from zero instead of 1) ? */ #define bit_for_each64_2(pos, tmp, ul) \ - for (tmp = ul, pos = ctz64(tmp); tmp; tmp ^= 1<