blob: f41932b7a4f759324a5c29d852a3add3b188538a [file] [log] [blame]
Abhay Kumar40252eb2025-10-13 13:25:53 +00001//go:build amd64 && !appengine && !noasm && gc
2// +build amd64,!appengine,!noasm,gc
3
4// Copyright 2019+ Klaus Post. All rights reserved.
5// License information can be found in the LICENSE file.
6
7package zstd
8
9// matchLen returns how many bytes match in a and b
10//
11// It assumes that:
12//
13// len(a) <= len(b) and len(a) > 0
14//
15//go:noescape
16func matchLen(a []byte, b []byte) int