diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-23 12:23:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-23 12:23:45 -0200 |
commit | 84e32ad2ebd6bd160c1320456743a5b1d8f233e9 (patch) | |
tree | c5a32eaf7577c99e7598e9de1385a6b53522f04b /ljumptab.h | |
parent | 35296e1fde705b3ac8356a4f4ce426497cf7b64c (diff) | |
download | lua-84e32ad2ebd6bd160c1320456743a5b1d8f233e9.tar.gz lua-84e32ad2ebd6bd160c1320456743a5b1d8f233e9.tar.bz2 lua-84e32ad2ebd6bd160c1320456743a5b1d8f233e9.zip |
Added opcodes for arithmetic with K operands
Added opcodes for all seven arithmetic operators with K operands
(that is, operands that are numbers in the array of constants of
the function). They cover the cases of constant float operands
(e.g., 'x + .0.0', 'x^0.5') and large integer operands (e.g.,
'x % 10000').
Diffstat (limited to 'ljumptab.h')
-rw-r--r-- | ljumptab.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -51,6 +51,13 @@ static void *disptab[] = { | |||
51 | &&L_OP_POWI, | 51 | &&L_OP_POWI, |
52 | &&L_OP_DIVI, | 52 | &&L_OP_DIVI, |
53 | &&L_OP_IDIVI, | 53 | &&L_OP_IDIVI, |
54 | &&L_OP_ADDK, | ||
55 | &&L_OP_SUBK, | ||
56 | &&L_OP_MULK, | ||
57 | &&L_OP_MODK, | ||
58 | &&L_OP_POWK, | ||
59 | &&L_OP_DIVK, | ||
60 | &&L_OP_IDIVK, | ||
54 | &&L_OP_BANDK, | 61 | &&L_OP_BANDK, |
55 | &&L_OP_BORK, | 62 | &&L_OP_BORK, |
56 | &&L_OP_BXORK, | 63 | &&L_OP_BXORK, |