func math/bits.Len32
13 uses
math/bits (current package)
bits.go#L34: func LeadingZeros32(x uint32) int { return 32 - Len32(x) }
bits.go#L304: return Len32(uint32(x))
bits.go#L324: func Len32(x uint32) (n int) {
github.com/klauspost/compress/flate
huffman_code.go#L85: c := uint(bits.Len32(uint32(size - 1)))
github.com/klauspost/compress/fse
fse.go#L143: return uint32(bits.Len32(val) - 1)
github.com/klauspost/compress/huff0
huff0.go#L336: return uint32(bits.Len32(val) - 1)
github.com/klauspost/compress/zstd
bitreader.go#L134: return uint32(bits.Len32(val) - 1)
blockenc.go#L154: inBits := bits.Len32(uint32(regenLen))
blockenc.go#L179: compBits, inBits := bits.Len32(uint32(compLen)), bits.Len32(uint32(inLen))
frameenc.go#L68: windowLog := (bits.Len32(f.WindowSize-1) - winLogMin) << 3
seqenc.go#L45: return uint32(bits.Len32(val) - 1)
seqenc.go#L111: return uint8(bits.Len32(offset) - 1)
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |