Module arithmetic

Source
Expand description

Arithmetic operations (ADD, SUB, MUL, DIV, etc.).

Functionsยง

add
Implements the ADD instruction - adds two values from stack.
addmod
Implements the ADDMOD instruction.
div
Implements the DIV instruction - divides two values from stack.
exp
Implements the EXP instruction - exponentiates two values from stack.
mul
Implements the MUL instruction - multiplies two values from stack.
mulmod
Implements the MULMOD instruction.
rem
Implements the MOD instruction.
sdiv
Implements the SDIV instruction.
signextend
Implements the SIGNEXTEND opcode as defined in the Ethereum Yellow Paper.
smod
Implements the SMOD instruction.
sub
Implements the SUB instruction - subtracts two values from stack.