MCPcopy Create free account
hub / github.com/CPChain/chain / opAnd

Function opAnd

core/vm/instructions.go:251–257  ·  view source on GitHub ↗
(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack)

Source from the content-addressed store, hash-verified

249}
250
251func opAnd(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
252 x, y := stack.pop(), stack.pop()
253 stack.push(x.And(x, y))
254
255 evm.interpreter.intPool.put(y)
256 return nil, nil
257}
258
259func opOr(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
260 x, y := stack.pop(), stack.peek()

Callers

nothing calls this directly

Calls 3

popMethod · 0.80
pushMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected