mirror of https://github.com/k3d-io/k3d
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
377 B
17 lines
377 B
8 months ago
|
//go:build amd64 && !appengine && !noasm && gc
|
||
|
// +build amd64,!appengine,!noasm,gc
|
||
|
|
||
|
// Copyright 2019+ Klaus Post. All rights reserved.
|
||
|
// License information can be found in the LICENSE file.
|
||
|
|
||
|
package zstd
|
||
|
|
||
|
// matchLen returns how many bytes match in a and b
|
||
|
//
|
||
|
// It assumes that:
|
||
|
//
|
||
|
// len(a) <= len(b) and len(a) > 0
|
||
|
//
|
||
|
//go:noescape
|
||
|
func matchLen(a []byte, b []byte) int
|