MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / And

Function And

pkg/util/bitarray/bitarray.go:420–426  ·  view source on GitHub ↗

And computes the logical AND of two bit arrays. The caller must ensure they have the same bit size.

(lhs, rhs BitArray)

Source from the content-addressed store, hash-verified

418// And computes the logical AND of two bit arrays.
419// The caller must ensure they have the same bit size.
420func And(lhs, rhs BitArray) BitArray {
421 res := lhs.Clone()
422 for i, w := range rhs.words {
423 res.words[i] &= w
424 }
425 return res
426}
427
428// Or computes the logical OR of two bit arrays.
429// The caller must ensure they have the same bit size.

Callers 1

eval.goFile · 0.92

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected