Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- opcode.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/opcode.h b/opcode.h index 1524272f0320..b74ba02d94bd 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)) -- 2.29.2