Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: _BitInt(N) Date: Mon, 24 Nov 2025 04:37:33 -0800 Organization: None to speak of Lines: 24 Message-ID: <87ecpn4nea.fsf@example.invalid> References: <10dajlh$ko3c$1@dont-email.me> <10fus62$hl69$1@solani.org> <10fv2dm$3can9$1@paganini.bofh.team> <10fv40v$1f7a2$1@dont-email.me> <10g0k70$22deu$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Mon, 24 Nov 2025 12:37:34 +0000 (UTC) Injection-Info: dont-email.me; posting-host="497198ffef236bf75350d11e6379045b"; logging-data="2535543"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pCSDUfFYWSMO3Z0H4cLVf" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:zpTdEPbtMcyYhSw6mzT290DhxHk= sha1:kbtk1EtiNHz0GGRt74cAu2+pkL4= Xref: csiph.com comp.lang.c:395409 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. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */