This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
128-bit integer - nonsensical documentation?
- From: Kostas Savvidis <ksavvidis at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 26 Aug 2015 14:04:34 +0300
- Subject: 128-bit integer - nonsensical documentation?
- Authentication-results: sourceware.org; auth=none
The online documentation contains the attached passage as part of the "C-Extensionsâ chapter. There are no actual machines which have an " integer mode wide enough to hold 128 bitsâ as the document puts it. This would be a harmless confusion if it didnât go on to say ââ long long integer less than 128 bits wideâ (???!!!) Whereas in reality "long long intâ is 64 bits everywhere i have seen.
KS
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6.8 128-bit integers
As an extension the integer scalar type __int128 is supported for targets which have an integer mode wide enough to hold 128 bits. Simply write __int128 for a signed 128-bit integer, or unsigned __int128 for an unsigned 128-bit integer. There is no support in GCC for expressing an integer constant of type __int128 for targets with long long integer less than 128 bits wide.