| 1 |
//go:build !386 && !amd64 && !arm64 |
| 2 |
|
| 3 |
package algo |
| 4 |
|
| 5 |
// The byte-view scanners in runeindex_x86.go reinterpret a []rune as |
| 6 |
// little-endian 4-byte lanes, which is not valid everywhere. Elsewhere the |
| 7 |
// reference scanners are the implementation. |
| 8 |
|
| 9 |
func indexAsciiRune(runes []rune, caseSensitive bool, b byte, from int) int { |
| 10 |
return indexAsciiRuneRef(runes, caseSensitive, b, from) |
| 11 |
} |
| 12 |
|
| 13 |
func lastIndexAsciiRune(runes []rune, caseSensitive bool, b byte, from int) int { |
| 14 |
return lastIndexAsciiRuneRef(runes, caseSensitive, b, from) |
| 15 |
} |
| 16 |
|
| 17 |
func indexRune(runes []rune, r rune, from int) int { |
| 18 |
return indexRuneRef(runes, r, from) |
| 19 |
} |
| 20 |
|
| 21 |
func lastIndexRune(runes []rune, r rune, from int) int { |
| 22 |
return lastIndexRuneRef(runes, r, from) |
| 23 |
} |