-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy pathfillarray_generic.go
More file actions
31 lines (24 loc) · 1.08 KB
/
Copy pathfillarray_generic.go
File metadata and controls
31 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//go:build !amd64 || appengine
// +build !amd64 appengine
package roaring
// On these targets useVectorFill is a compile-time constant false, so the
// branches that would reach these functions are eliminated and none of them is
// ever executed. They exist so that the shared call sites in bitmapcontainer.go
// and util.go compile, and they delegate back to the scalar paths so that they
// remain correct if anything ever does call them. There is no recursion: the
// guard in each caller is false at compile time on these targets.
func fillArrayVector(bitmap []uint64, container []uint16) {
fillArrayScalar(bitmap, container)
}
func fillArraySkipVector(bitmap []uint64, container []uint16) {
fillArrayScalar(bitmap, container)
}
func fillArrayANDVector(container []uint16, bitmap1, bitmap2 []uint64) {
fillArrayAND(container, bitmap1, bitmap2)
}
func fillArrayANDNOTVector(container []uint16, bitmap1, bitmap2 []uint64) {
fillArrayANDNOT(container, bitmap1, bitmap2)
}
func fillArrayXORVector(container []uint16, bitmap1, bitmap2 []uint64) {
fillArrayXOR(container, bitmap1, bitmap2)
}