Re: [PATCH v4 3/9] bitint: Allow unused bits when testing extended _BitInt ABIs

2025-07-30 Thread Jakub Jelinek
On Fri, Jul 25, 2025 at 10:53:36AM +0800, Yang Yujie wrote: > P.S. For encoding this test as well as type-generic programming, > it would be nice to have a builtin function to obtain "N" at > compile time from _BitInt(N)-typed expressions. But here > we stick to existing ones (__builtin_clrsbg / _

[PATCH v4 3/9] bitint: Allow unused bits when testing extended _BitInt ABIs

2025-07-24 Thread Yang Yujie
In LoongArch psABI, large _BitInt(N) (N > 64) objects are only extended to fill the highest 8-byte chunk that contains any used bit, but the size of such a large _BitInt type is a multiple of their 16-byte alignment. So there may be an entire unused 8-byte chunk that is not filled by extension, an