Skip to main content

Module arithmetic

Module arithmetic 

Source
Expand description

§Arithmetic operations

Includes the following opcodes:

  • ADD
  • SUB
  • MUL
  • DIV
  • SDIV
  • MOD
  • SMOD
  • ADDMOD
  • MULMOD
  • EXP
  • SIGNEXTEND
  • CLZ

Structs§

OpAddHandler
Implementation for the ADD opcode.
OpAddModHandler
Implementation for the ADDMOD opcode.
OpClzHandler
Implementation for the CLZ opcode.
OpDivHandler
Implementation for the DIV opcode.
OpExpHandler
Implementation for the EXP opcode.
OpModHandler
Implementation for the MOD opcode.
OpMulHandler
Implementation for the MUL opcode.
OpMulModHandler
Implementation for the MULMOD opcode.
OpSDivHandler
Implementation for the SDIV opcode.
OpSModHandler
Implementation for the SMOD opcode.
OpSignExtendHandler
Implementation for the SIGNEXTEND opcode.
OpSubHandler
Implementation for the SUB opcode.