From: cr88192@gmail.com   
      
   On 11/24/2025 6:37 AM, Keith Thompson wrote:   
   > BGB writes:   
   > [...]   
   >> In BGBCC, there is a hard limit of IIRC 16384 bits.   
   >>   
   >> As an extension, it also allows for very large literals, though   
   >> currently literals larger than 128 bits can only use hexadecimal or   
   >> similar.   
   >>   
   >> This is encoded via suffixes, eg:   
   >> I, L, LL, U, UI, UL, ULL: Normal 32/64 bit.   
   >> I128, UI128: 128-bit   
   >> I256, UI256: 256-bit   
   >> other odd sizes map to _BitInt or _UBitInt (unsigned _BitInt).   
   >   
   > In C23, an integer constant with a "wb" or "WB" suffix is of type   
   > _BitInt(n). One with a "wbu" suffix is of type unsigned _BitInt(n).   
   > The value of n is the smallest that can accomodate the value of the   
   > constant.   
   >   
      
   OK, I missed that part.   
      
   I had a need though in this case to specify an exact width for the   
   constant in some use cases, rather than merely just specify its largeness.   
      
   But, yeah, I and U / UI are non-standard, but alas...   
      
   Follows a similar pattern as for printf modifiers, say:   
    printf("%I64u\n", longValue); //MSVC specific   
   Vs, say:   
    printf("%llu\n", longValue); //Most everything else   
      
   In this case, the I notation being extended to also cover __int128   
   and _BitInt.   
      
   ...   
      
      
      
   > [...]   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|