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: Sat, 29 Nov 2025 17:32:12 -0800 Organization: None to speak of Lines: 21 Message-ID: <87o6ok9ug3.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> <20251123170654.000056a9@yahoo.com> <10gfn95$sda3$1@solani.org> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 30 Nov 2025 01:32:17 +0000 (UTC) Injection-Info: dont-email.me; posting-host="b91c98256e5f5257b2c8e79758829dd7"; logging-data="4120726"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AQvtAadGJms8CRmEhawVE" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:M8fcnt0ey1zONwS6IyapiXY3nTU= sha1:cOaI2PSdqjTwaxHAH6O5RCxyeKc= Xref: csiph.com comp.lang.c:395587 Philipp Klaus Krause writes: > Am 23.11.25 um 16:06 schrieb Michael S: >> Upper limit is implementation-defined. >> On both existing implementations the limit (on 64-bit targets) appears >> to be 2**16 or 2**16-1. I don't remember which one. Recent versions of gcc have BITINT_MAXWIDTH == 65535. llvm/clang has BITINT_MAXWIDTH == 8388608 (2**23) (and some serious performance problems with multiplication and division for large _BitInt types). > Thisis comp.lang.c, not comp.lang.c++. There still are implementations > of C other than GCC and clang. E.g. SDCC has a limit of 64. I didn't see any references to C++ in the parent article. But it's interesting that SDCC support _BitInt. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */