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

Function Xor

pkg/util/bitarray/bitarray.go:440–446  ·  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

438// Xor computes the logical XOR of two bit arrays.
439// The caller must ensure they have the same bit size.
440func Xor(lhs, rhs BitArray) BitArray {
441 res := lhs.Clone()
442 for i, w := range rhs.words {
443 res.words[i] ^= w
444 }
445 return res
446}
447
448// Compare compares two bit arrays. They can have mixed sizes.
449func Compare(lhs, rhs BitArray) int {

Callers 1

eval.goFile · 0.92

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected