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

Function opMul

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

Source from the content-addressed store, hash-verified

54}
55
56func opMul(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
57 x, y := stack.pop(), stack.pop()
58 stack.push(math.U256(x.Mul(x, y)))
59
60 evm.interpreter.intPool.put(y)
61
62 return nil, nil
63}
64
65func opDiv(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
66 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