Registry / utility / tmthrgd-go-popcount

tmthrgd-go-popcount

JSON →
library0.0.0-20190904054823-afb1ace8b04fgogounverified

Implements population count (bit counting) for integers in Go.

go get github.com/tmthrgd/go-popcount
INSTALL
IMPORT
SIG · TMTHRGD-GO-POPCOUN
T
tmthrgd-go-popcount
utilitygov0.0.0-20190904054823-afb1ace8b04f
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

popcount
github.com/tmthrgd/go-popcount

Counts the number of set bits in the integer 42.

package main import ( "github.com/tmthrgd/go-popcount" ) func main() { count := popcount.Count(42) println(count) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20190904054823-afb1ace8b04flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
tmthrgd-go-popcount — go get tmthrgd-go-popcount · libregistry