From 16b6adf1a1e92a28f19d63b127e136e34a3869cc Mon Sep 17 00:00:00 2001 From: xinian Date: Thu, 19 Feb 2026 14:54:36 +0800 Subject: [PATCH] 1 --- common/utils/bitset/popcnt_19.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/utils/bitset/popcnt_19.go b/common/utils/bitset/popcnt_19.go index 64c462b5..1aa6ef4b 100644 --- a/common/utils/bitset/popcnt_19.go +++ b/common/utils/bitset/popcnt_19.go @@ -3,6 +3,13 @@ package bitset32 import "math/bits" func popcntSlice(s []uint32) uint64 { + + // int r = 0; + // while(n) + // { + // n &= (n - 1); + // ++r; + // } var cnt int for _, x := range s { cnt += bits.OnesCount32(x)