MCPcopy Create free account
hub / github.com/brimdata/super / And

Function And

vector/bitvec/bits.go:151–163  ·  view source on GitHub ↗
(a, b Bits)

Source from the content-addressed store, hash-verified

149}
150
151func And(a, b Bits) Bits {
152 if a.IsZero() || b.IsZero() {
153 return Zero
154 }
155 if a.Len() != b.Len() {
156 panic("and'ing two different length bool vectors")
157 }
158 out := NewFalse(a.Len())
159 for i := range len(a.bits) {
160 out.bits[i] = a.bits[i] & b.bits[i]
161 }
162 return out
163}
164
165func ReverseIndex(index []uint32, n uint32) []uint32 {
166 var reverse []uint32

Callers 1

evalMethod · 0.92

Calls 3

NewFalseFunction · 0.70
LenMethod · 0.65
IsZeroMethod · 0.45

Tested by

no test coverage detected