From 7c5dd45eca377a3b675b6f0d4a9331bc3f971ac9 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 22 Mar 2026 22:00:35 +0100 Subject: 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. --- src/t_aarch64_emit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/t_aarch64_emit.c') 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)); -- cgit v1.2.3