| 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 isASCIIImpl(data []byte) bool { |
| 12 | return isASCIIGeneric(data) |
| 13 | } |
| 14 | |
| 15 | func firstNonASCIIImpl(data []byte) int { |
| 16 | return firstNonASCIIGeneric(data) |
| 17 | } |
| 18 | |
| 19 | func countNonASCIIImpl(data []byte) int { |
| 20 | return countNonASCIIGeneric(data) |
| 21 | } |