// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 || arm || arm64 || ppc64le || ppc64 || riscv64 || s390x

package bytealg

//go:noescape
func ( []byte,  byte) int

//go:noescape
func ( string,  byte) int

// A backup implementation to use by assembly.
func countGeneric( []byte,  byte) int {
	 := 0
	for ,  := range  {
		if  ==  {
			++
		}
	}
	return 
}
func countGenericString( string,  byte) int {
	 := 0
	for  := 0;  < len(); ++ {
		if [] ==  {
			++
		}
	}
	return 
}