// Copyright 2019+ Klaus Post. All rights reserved.
// License information can be found in the LICENSE file.

package flate

import (
	

	
)

// 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 
}