func math.Log2
9 uses
math (current package)
log10.go#L22: func Log2(x float64) float64 {
math/big
natconv.go#L309: i := int(float64(x.bitLen())/math.Log2(float64(base))) + 1 // off by 1 at most
github.com/andybalholm/brotli
fast_log.go#L289: return math.Log2(float64(v))
github.com/andybalholm/brotli/matchfinder
bargain1.go#L49: cost := max(math.Log2(float64(len(src))/float64(n)), 1)
bargain2.go#L51: cost := max(math.Log2(float64(len(src))/float64(n)), 1)
bargain3.go#L48: cost := max(math.Log2(float64(len(src))/float64(n)), 1)
pathfinder.go#L90: cost := max(math.Log2(float64(len(src))/float64(n)), 1)
github.com/klauspost/compress
compressible.go#L81: shannon += math.Ceil(-math.Log2(n*invTotal) * n)
github.com/klauspost/compress/huff0
huff0.go#L329: nbBits += math.Log2(fTotal/n) * n
![]() |
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. |