func math/bits.OnesCount64
5 uses
math/bits (current package)
bits.go#L115: return OnesCount64(uint64(x))
bits.go#L134: func OnesCount64(x uint64) int {
google.golang.org/protobuf/internal/impl
decode.go#L186: if mi.numRequiredFields > 0 && bits.OnesCount64(requiredMask) != int(mi.numRequiredFields) {
validate.go#L566: if numRequiredFields > 0 && bits.OnesCount64(st.requiredMask) != numRequiredFields {
google.golang.org/protobuf/internal/set
ints.go#L14: return bits.OnesCount64(uint64(*bs))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |