| 1 |
//go:build purego || !amd64 |
| 2 |
// +build purego !amd64 |
| 3 |
|
| 4 |
package mem |
| 5 |
|
| 6 |
func indexPair1(b []byte) int { |
| 7 |
return indexPairGeneric(b, 1) |
| 8 |
} |
| 9 |
|
| 10 |
func indexPair2(b []byte) int { |
| 11 |
return indexPairGeneric(b, 2) |
| 12 |
} |
| 13 |
|
| 14 |
func indexPair4(b []byte) int { |
| 15 |
return indexPairGeneric(b, 4) |
| 16 |
} |
| 17 |
|
| 18 |
func indexPair8(b []byte) int { |
| 19 |
return indexPairGeneric(b, 8) |
| 20 |
} |
| 21 |
|
| 22 |
func indexPair16(b []byte) int { |
| 23 |
return indexPairGeneric(b, 16) |
| 24 |
} |
| 25 |
|
| 26 |
func indexPair32(b []byte) int { |
| 27 |
return indexPairGeneric(b, 32) |
| 28 |
} |