matchlen_amd64.go raw

   1  //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  
   7  package 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
  16  func matchLen(a []byte, b []byte) int
  17