We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dddaaf3 commit 9b20e9aCopy full SHA for 9b20e9a
z/simd/search.go
@@ -20,7 +20,7 @@ package simd
20
21
// Search uses the Clever search to find the correct key.
22
func Search(xs []uint64, k uint64) int16 {
23
- if len(xs) < 8 {
+ if len(xs) < 8 || (len(xs) % 8 != 0) {
24
return Naive(xs, k)
25
}
26
var twos, pk [4]uint64
0 commit comments