MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Or

Function Or

postgres/parser/utils/bitarray.go:444–450  ·  view source on GitHub ↗

Or computes the logical OR 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

442// Or computes the logical OR of two bit arrays.
443// The caller must ensure they have the same bit size.
444func Or(lhs, rhs BitArray) BitArray {
445 res := lhs.Clone()
446 for i, w := range rhs.words {
447 res.words[i] |= w
448 }
449 return res
450}
451
452// Xor computes the logical XOR of two bit arrays.
453// The caller must ensure they have the same bit size.

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected