From 84e32ad2ebd6bd160c1320456743a5b1d8f233e9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 23 Nov 2018 12:23:45 -0200 Subject: 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'). --- ljumptab.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ljumptab.h') diff --git a/ljumptab.h b/ljumptab.h index 6767e95b..0af997d0 100644 --- a/ljumptab.h +++ b/ljumptab.h @@ -51,6 +51,13 @@ static void *disptab[] = { &&L_OP_POWI, &&L_OP_DIVI, &&L_OP_IDIVI, +&&L_OP_ADDK, +&&L_OP_SUBK, +&&L_OP_MULK, +&&L_OP_MODK, +&&L_OP_POWK, +&&L_OP_DIVK, +&&L_OP_IDIVK, &&L_OP_BANDK, &&L_OP_BORK, &&L_OP_BXORK, -- cgit v1.2.3-55-g6feb