vm: add MODMUL and MODPOW opcodes

Close #2470.
This commit is contained in:
Anna Shaleva 2022-05-11 09:33:19 +03:00
parent 7fd0eb14b5
commit a94ccf9236
6 changed files with 122 additions and 42 deletions

View file

@ -165,6 +165,8 @@ var coefficients = [256]uint16{
opcode.MOD: 1 << 3,
opcode.POW: 1 << 6,
opcode.SQRT: 1 << 6,
opcode.MODMUL: 1 << 5,
opcode.MODPOW: 1 << 11,
opcode.SHL: 1 << 3,
opcode.SHR: 1 << 3,
opcode.NOT: 1 << 2,