github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/bytealg/index_s390x.go (about)

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package bytealg
     6  
     7  const MaxBruteForce = 64
     8  
     9  // Cutover reports the number of failures of IndexByte we should tolerate
    10  // before switching over to Index.
    11  // n is the number of bytes processed so far.
    12  // See the bytes.Index implementation for details.
    13  func Cutover(n int) int