Sujet : Re: Top 10 most common hard skills listed on resumes...
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 14. Sep 2024, 23:13:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86cyl5evdn.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Keith Thompson <Keith.S.Thompson+
u@gmail.com> writes:
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
[...]
>
Assuming all that is right, I recommend
>
typedef __uint128_t U128;
typedef __int128_t S128;
>
which works in both gcc and clang (I don't know yet about
Visual Studio).
>
The documented names are `__int128` and `unsigned __int128`.
>
Both gcc and clang do recognize `__int128_t` and `__uint128_t`,
but I wouldn't recommend relying on an undocumented feature.
Both gcc and clang recognized __[u]int128_t in earlier versions
than they did __int128. The __[u]int128_t types are also
recognized by the Intel compiler.
__int128 is treated as a keyword.
That's another reason to prefer __[u]int128_t types.