aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--opcode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/opcode.h b/opcode.h
index 1524272f..b74ba02d 100644
--- a/opcode.h
+++ b/opcode.h
@@ -32,6 +32,16 @@ extern const struct opcode_table {
} opcode_table[];
+static inline int opcode_negate(int opcode)
+{
+ return opcode_table[opcode].negate;
+}
+
+static inline int opcode_swap(int opcode)
+{
+ return opcode_table[opcode].swap;
+}
+
static inline int opcode_float(int opcode, struct symbol *type)
{
if (!type || !is_float_type(type))