MCPcopy Create free account
hub / github.com/chain/txvm / opMod

Function opMod

protocol/txvm/math.go:24–24  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

22func opMul(vm *VM) { binOp(vm, checked.MulInt64) }
23func opDiv(vm *VM) { binOp(vm, checked.DivInt64) }
24func opMod(vm *VM) { binOp(vm, checked.ModInt64) }
25
26func binOp(vm *VM, f func(a, b int64) (int64, bool)) {
27 b := int64(vm.popInt())

Callers

nothing calls this directly

Calls 1

binOpFunction · 0.85

Tested by

no test coverage detected