vm: implement SQRT opcode
This commit is contained in:
parent
6496782736
commit
d255c4a517
5 changed files with 59 additions and 38 deletions
|
@ -163,6 +163,7 @@ var coefficients = map[opcode.Opcode]int64{
|
|||
opcode.DIV: 1 << 3,
|
||||
opcode.MOD: 1 << 3,
|
||||
opcode.POW: 1 << 6,
|
||||
opcode.SQRT: 1 << 11,
|
||||
opcode.SHL: 1 << 3,
|
||||
opcode.SHR: 1 << 3,
|
||||
opcode.NOT: 1 << 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue