From efb25f363f6955c6c0cefac4ae124f77d4c1f621 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Sat, 29 Jan 2022 15:47:38 +0100 Subject: [PATCH] bugfix bit_for_each64_2 --- 2021/include/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2021/include/bits.h b/2021/include/bits.h index fd32c3a..5f2ea68 100644 --- a/2021/include/bits.h +++ b/2021/include/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<