Sujet : Re: What is your opinion about unsigned int u = -2 ?
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.cDate : 03. Aug 2024, 19:30:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8lsvd$3i5od$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
More samples..
max uint64 + 1 is signed 128 bits in gcc and unsigned long long in clang
#ifdef __clang__
static_assert(TYPE_IS(9223372036854775808, unsigned long long ));
#else
static_assert(TYPE_IS(9223372036854775808, __int128));
#endif
https://godbolt.org/z/hveY44ov4