Debian Codegraph @

simd/memchr_other.go

raw symbols SCIP
1 // Adapted from the coregex project, https://github.com/coregx/coregex
2 // (package simd), Copyright (c) 2025 Andrey Kolkov and contributors,
3 // MIT License. See the LICENSE file in this directory for the full text.
4
5 //go:build !amd64
6
7 package simd
8
9 // The portable SWAR implementations are the only ones off amd64.
10
11 func memchr2Impl(haystack []byte, needle1, needle2 byte) int {
12 return memchr2Generic(haystack, needle1, needle2)
13 }
14
15 func memchr3Impl(haystack []byte, needle1, needle2, needle3 byte) int {
16 return memchr3Generic(haystack, needle1, needle2, needle3)
17 }
18
19 func memchrPairImpl(haystack []byte, byte1, byte2 byte, offset int) int {
20 return memchrPairGeneric(haystack, byte1, byte2, offset)
21 }