diff options
| author | 2025-11-05 13:56:54 +0100 | |
|---|---|---|
| committer | 2025-11-05 19:02:44 +0100 | |
| commit | 13471741b538baa45cd53a521cf7d52087f3200f (patch) | |
| tree | 15624e0f3a2e8a11f2c114f8309af6e3207193c0 /common.h | |
| parent | 088c3c1ce51de82ef317592bae766ad20f82208d (diff) | |
amd64: fix aggregate abi stuff;; ir: fold, peephole optimizing constructors
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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))); |