MCPcopy Create free account
hub / github.com/DNAProject/DNA / Xor

Method Xor

vm/neovm/types/int_value.go:202–208  ·  view source on GitHub ↗
(other IntValue)

Source from the content-addressed store, hash-verified

200}
201
202func (self IntValue) Xor(other IntValue) (IntValue, error) {
203 return self.intOp(other, func(a, b int64) (int64, bool) {
204 return a ^ b, true
205 }, func(a, b *big.Int) (IntValue, error) {
206 return IntValFromBigInt(new(big.Int).Xor(a, b))
207 })
208}
209
210func (self IntValue) And(other IntValue) (IntValue, error) {
211 return self.intOp(other, func(a, b int64) (int64, bool) {

Callers 3

ExecuteOpMethod · 0.80
BigIntZipFunction · 0.80
compareFuncIntValueFunction · 0.80

Calls 2

intOpMethod · 0.95
IntValFromBigIntFunction · 0.85

Tested by 1

compareFuncIntValueFunction · 0.64