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 / __builtin_clzg).

I think there were talks about _WidthOf or something similar for C2Y, but
not sure how far is that and what if anything will be voted in.
So, I'd really wait.

> 
> gcc/testsuite/ChangeLog:
> 
>       * gcc.dg/bitintext.h: Generalize BEXTC to only check extension
>       within PROMOTED_SIZE bits.

Ok.

        Jakub

Reply via email to