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

Function opExp

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

Source from the content-addressed store, hash-verified

123}
124
125func opExp(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
126 base, exponent := stack.pop(), stack.pop()
127 stack.push(math.Exp(base, exponent))
128
129 evm.interpreter.intPool.put(base, exponent)
130
131 return nil, nil
132}
133
134func opSignExtend(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) {
135 back := stack.pop()

Callers

nothing calls this directly

Calls 3

popMethod · 0.80
pushMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected