mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-01 18:00:23 +02:00
Add jit_same_{gprs,fprs} helpers
This commit is contained in:
parent
f9da599ef5
commit
0903a01812
1 changed files with 12 additions and 0 deletions
12
lightening.h
12
lightening.h
|
@ -110,6 +110,18 @@ typedef struct jit_reloc
|
|||
#define jit_class(bits) ((bits) & 0xffff0000)
|
||||
#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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue