Source File
matchlen_generic.go
Belonging Package
github.com/klauspost/compress/flate
// Copyright 2019+ Klaus Post. All rights reserved.// License information can be found in the LICENSE file.package flateimport ()// matchLen returns the maximum common prefix length of a and b.// a must be the shortest of the two.func matchLen(, []byte) ( int) {:= len()for >= 8 {:= le.Load64(, ) ^ le.Load64(, )if != 0 {return + bits.TrailingZeros64()>>3}+= 8-= 8}= [:]= [:]for := range {if [] != [] {break}++}return}
![]() |
The pages are generated with Golds v0.8.2. (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. |