diff options
| author | 2026-03-22 22:00:35 +0100 | |
|---|---|---|
| committer | 2026-03-22 22:00:35 +0100 | |
| commit | 7c5dd45eca377a3b675b6f0d4a9331bc3f971ac9 (patch) | |
| tree | 08d7a252029da556d09b6014018678f80a75c032 /src/t_aarch64_emit.c | |
| parent | 33d31f72d546b4b224c226e82fb111e24f8b2e37 (diff) | |
style: change uvlong -> u64int, vlong -> s64int
Is much nicer. I don't know whether I want to do it for the other int
types too. char and uchar are fine as bytes. u/short -> u/s16int, maybe.
Diffstat (limited to 'src/t_aarch64_emit.c')
| -rw-r--r-- | src/t_aarch64_emit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_aarch64_emit.c b/src/t_aarch64_emit.c index abf1f3e..52429a3 100644 --- a/src/t_aarch64_emit.c +++ b/src/t_aarch64_emit.c @@ -31,7 +31,7 @@ typedef struct Oper { short disp; }; } m; - vlong imm; uvlong uimm; /* OIMM */ + s64int imm; u64int uimm; /* OIMM */ struct { /* OSYM */ ushort con; int cdisp; @@ -541,7 +541,7 @@ gencopy(uchar **pcode, enum irclass cls, Block *blk, int curi, Oper dst, Ref val if (isintcon(val)) { assert(dst.reg <= R(31)); /* MOV r, #imm */ - uvlong u = intconval(val); + u64int u = intconval(val); if (~u <= 0xFFFF) { /* immediate can be encoded with 1 MOVN instruction */ Xmovn(pcode, cls, dst, mkoper(OIMM, .imm = ~u)); |