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

Function Xor

postgres/parser/utils/bitarray.go:454–460  ·  view source on GitHub ↗

Xor computes the logical XOR 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

452// Xor computes the logical XOR of two bit arrays.
453// The caller must ensure they have the same bit size.
454func Xor(lhs, rhs BitArray) BitArray {
455 res := lhs.Clone()
456 for i, w := range rhs.words {
457 res.words[i] ^= w
458 }
459 return res
460}
461
462// Compare compares two bit arrays. They can have mixed sizes.
463func Compare(lhs, rhs BitArray) int {

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected