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: Tue, 25 Nov 2025 13:42:37 -0800 Organization: None to speak of Lines: 18 Message-ID: <87bjkpkcvm.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> <87ms4c4bom.fsf@example.invalid> <10g08vm$1us25$1@dont-email.me> <10g1et7$2bmus$1@dont-email.me> <10g1j7h$2deh9$1@dont-email.me> <10g1qq9$2f8lb$4@dont-email.me> <10g28gm$2mf9s$1@dont-email.me> <87cy563m3v.fsf@example.invalid> <10g44fn$3bqef$1@dont-email.me> <20251125141207.00001d0f@yahoo.com> <10g551s$3onvh$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Tue, 25 Nov 2025 21:42:38 +0000 (UTC) Injection-Info: dont-email.me; posting-host="fa7a31f1160d6b9aea861ca62102f1fd"; logging-data="4008114"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/saG9VGe+cHksJTywtfv6/" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:jQG6wUKnOeE2S8gI3dFuVQKWKjA= sha1:jYTlDcBY0lXGBfecKmv5vhCXcgk= Xref: csiph.com comp.lang.c:395483 David Brown writes: [...] > But the _BitInt version is definitely neater. I can see myself using > _BitInt(12) and similar sizes for things like values read from > hardware sensors of different resolutions. > > (The code for all three is the same with gcc on x86 or arm64 - > unfortunately, gcc does not yet support _BitInt on many targets.) [...] Is support for _BitInt limited by target or by version? It looks like _BitInt support was introduced in gcc 14.1.0. You might have older versions of gcc on other platforms. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */