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

Method Or

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

Source from the content-addressed store, hash-verified

216}
217
218func (self IntValue) Or(other IntValue) (IntValue, error) {
219 return self.intOp(other, func(a, b int64) (int64, bool) {
220 return a | b, true
221 }, func(a, b *big.Int) (IntValue, error) {
222 return IntValFromBigInt(new(big.Int).Or(a, b))
223 })
224}
225
226func (self IntValue) Cmp(other IntValue) int {
227 if self.isbig == false && other.isbig == false {

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