From 47c07dd0eb4e5d1481c112df031d13b98180de5a Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 3 Aug 2022 16:40:34 +0200 Subject: [PATCH] Fix embarassing ctz issue --- whippet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whippet.h b/whippet.h index b533093f5..49b0af9a7 100644 --- a/whippet.h +++ b/whippet.h @@ -1492,7 +1492,7 @@ static inline uint64_t load_mark_bytes(uint8_t *mark) { } static inline size_t count_zero_bytes(uint64_t bytes) { - return bytes ? (__builtin_ctz(bytes) / 8) : sizeof(bytes); + return bytes ? (__builtin_ctzll(bytes) / 8) : sizeof(bytes); } static size_t next_mark(uint8_t *mark, size_t limit, uint64_t sweep_mask) {