aboutsummaryrefslogtreecommitdiff
path: root/lopnames.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-23 12:23:45 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-23 12:23:45 -0200
commit84e32ad2ebd6bd160c1320456743a5b1d8f233e9 (patch)
treec5a32eaf7577c99e7598e9de1385a6b53522f04b /lopnames.h
parent35296e1fde705b3ac8356a4f4ce426497cf7b64c (diff)
downloadlua-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 'lopnames.h')
-rw-r--r--lopnames.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lopnames.h b/lopnames.h
index b2c4fe21..96d901ac 100644
--- a/lopnames.h
+++ b/lopnames.h
@@ -36,6 +36,13 @@ static const char *const opnames[] = {
36 "POWI", 36 "POWI",
37 "DIVI", 37 "DIVI",
38 "IDIVI", 38 "IDIVI",
39 "ADDK",
40 "SUBK",
41 "MULK",
42 "MODK",
43 "POWK",
44 "DIVK",
45 "IDIVK",
39 "BANDK", 46 "BANDK",
40 "BORK", 47 "BORK",
41 "BXORK", 48 "BXORK",