Add support for 64 bit integer arithmetic to x64 backend.
This commit is contained in:
@@ -380,9 +380,14 @@ typedef struct IRType1 { uint8_t irt; } IRType1;
|
||||
#define irt_isgcv(t) (irt_typerange((t), IRT_STR, IRT_UDATA))
|
||||
#define irt_isaddr(t) (irt_typerange((t), IRT_LIGHTUD, IRT_UDATA))
|
||||
|
||||
#if LJ_64
|
||||
#define IRT_IS64 \
|
||||
((1u<<IRT_NUM) | (1u<<IRT_I64) | (1u<<IRT_U64) | (1u<<IRT_P64) | \
|
||||
(LJ_64 ? (1u<<IRT_LIGHTUD) : 0))
|
||||
((1u<<IRT_NUM)|(1u<<IRT_I64)|(1u<<IRT_U64)|(1u<<IRT_P64)|(1u<<IRT_LIGHTUD))
|
||||
#else
|
||||
#define IRT_IS64 \
|
||||
((1u<<IRT_NUM)|(1u<<IRT_I64)|(1u<<IRT_U64))
|
||||
#endif
|
||||
|
||||
#define irt_is64(t) ((IRT_IS64 >> irt_type(t)) & 1)
|
||||
|
||||
static LJ_AINLINE IRType itype2irt(const TValue *tv)
|
||||
|
||||
Reference in New Issue
Block a user