From 13471741b538baa45cd53a521cf7d52087f3200f Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 5 Nov 2025 13:56:54 +0100 Subject: amd64: fix aggregate abi stuff;; ir: fold, peephole optimizing constructors --- common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index a4b82cc..c2f95d6 100644 --- a/common.h +++ b/common.h @@ -78,7 +78,7 @@ ispo2(uvlong x) { return (x != 0) & ((x & (x - 1)) == 0); } static inline uint -ilog2(uint x) { /* assumes x is a power of 2 */ +ilog2(uvlong x) { /* assumes x is a power of 2 */ #if HAS_BUILTIN(ctz) return __builtin_ctz(x); #else @@ -280,12 +280,12 @@ extern const char *ttypenames[/*id*/]; #define tdqualsiz(nmemb) ((nmemb)/4 + ((nmemb)%4 != 0)) static inline int -tdgetqual(const uchar *pqual, int idx) +tdgetqual(const uchar *pqual, uint idx) { return pqual ? pqual[idx/4] >> 2*(idx%4) & 3 : 0; } static inline void -tdsetqual(uchar *pqual, int idx, int qual) +tdsetqual(uchar *pqual, uint idx, int qual) { assert(pqual); pqual[idx/4] &= ~(3 << (2*(idx%4))); -- cgit v1.2.3