diff options
-rw-r--r-- | lightening.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lightening.h b/lightening.h index 5331a8de7..cb838c5ed 100644 --- a/lightening.h +++ b/lightening.h @@ -111,6 +111,18 @@ typedef struct jit_reloc #define jit_regno(bits) ((bits) & 0x00007fff) static inline jit_bool_t +jit_same_gprs (jit_gpr_t a, jit_gpr_t b) +{ + return a.bits == b.bits; +} + +static inline jit_bool_t +jit_same_fprs (jit_fpr_t a, jit_fpr_t b) +{ + return a.bits == b.bits; +} + +static inline jit_bool_t jit_gpr_is_callee_save (jit_gpr_t reg) { return jit_class(reg.bits) & jit_class_sav; |