Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown Newsgroups: comp.lang.c Subject: Re: Top 10 most common hard skills listed on resumes... Date: Mon, 9 Sep 2024 21:04:10 +0200 Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <878qw13a40.fsf@nosuchdomain.example.com> <874j6p34df.fsf@nosuchdomain.example.com> <20240909114553.226@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 09 Sep 2024 21:04:11 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3efea3e64b610dbd0655d184f54f1324"; logging-data="2654076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YKvWcACJ6IYF/3teu7DFkOlxg/XB15lc=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:S8UGYG0DadZyCf7XkR52ba+wlRk= Content-Language: en-GB In-Reply-To: <20240909114553.226@kylheku.com> Bytes: 2464 On 09/09/2024 20:46, Kaz Kylheku wrote: > On 2024-09-09, David Brown wrote: >> On 09/09/2024 18:57, Bart wrote: >>> On 09/09/2024 17:21, Waldek Hebisch wrote: >>>> Keith Thompson wrote: >>> >>>>> C23 doesn't add any new support for 128-bit integers. >>> >>> So what does _Bitint do with a width of 128 bits? >>> >> >> _BitInt types are not "integer types". Nor is gcc's __int128 type. > > How can we write a program which, in an implementation which has a > __int128 type, outputs "yes" if it is an integer type, otherwise "no"? > #include int main() { auto const x = 0x1'0000'0000'0000'0000; if (x > 0xffff'ffff'ffff'ffff) { printf("yes\n"); } else { printf("no\n"); } }