func math/bits.Len32
8 uses
math/bits (current package)
bits.go#L28: func LeadingZeros32(x uint32) int { return 32 - Len32(x) }
bits.go#L298: return Len32(uint32(x))
bits.go#L318: func Len32(x uint32) (n int) {
golang.org/x/crypto/openpgp/packet
packet.go#L130: power = uint8(bits.Len32(uint32(len(p)))) - 1
google.golang.org/protobuf/internal/encoding/json
encode.go#L115: out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...)
google.golang.org/protobuf/internal/encoding/text
encode.go#L142: out = append(out, "00"[1+(bits.Len32(uint32(r))-1)/4:]...)
encode.go#L150: out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...)
encode.go#L154: out = append(out, "00000000"[1+(bits.Len32(uint32(r))-1)/4:]...)
![]() |
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. |