mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-06 11:25:02 +00:00
15 lines
478 B
Go
15 lines
478 B
Go
// Copyright 2025 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.
|
|
// inspired by: https://github.com/golang/go/blob/4a3cef2036097d323b6cc0bbe90fc4d8c7588660/src/crypto/internal/fips140/subtle/xor_asm.go
|
|
|
|
//go:build (amd64 || arm64) && !purego
|
|
|
|
package bitutil
|
|
|
|
func testBytes(p []byte) bool {
|
|
return testBytesASM(&p[0], len(p))
|
|
}
|
|
|
|
//go:noescape
|
|
func testBytesASM(p *byte, n int) bool
|