From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12118 invoked by alias); 26 Aug 2015 12:22:16 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 12108 invoked by uid 89); 26 Aug 2015 12:22:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f179.google.com Received: from mail-yk0-f179.google.com (HELO mail-yk0-f179.google.com) (209.85.160.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 26 Aug 2015 12:22:15 +0000 Received: by ykll84 with SMTP id l84so183943009ykl.0 for ; Wed, 26 Aug 2015 05:22:13 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.170.128.131 with SMTP id u125mr43096523ykb.5.1440591733407; Wed, 26 Aug 2015 05:22:13 -0700 (PDT) Received: by 10.37.214.136 with HTTP; Wed, 26 Aug 2015 05:22:13 -0700 (PDT) In-Reply-To: <1B1111BE-E274-4C80-8189-22B78D77647A@gmail.com> References: <1B1111BE-E274-4C80-8189-22B78D77647A@gmail.com> Date: Wed, 26 Aug 2015 12:22:00 -0000 Message-ID: Subject: Re: 128-bit integer - nonsensical documentation? From: Jonathan Wakely To: Kostas Savvidis Cc: gcc-help Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00179.txt.bz2 On 26 August 2015 at 12:04, Kostas Savvidis wrote: > The online documentation contains the attached passage as part of the "C-= Extensions=E2=80=9D chapter. There are no actual machines which have an " i= nteger mode wide enough to hold 128 bits=E2=80=9D as the document puts it. It's not talking about machine integers, it's talking about GCC integer modes. Several targets support that. > This would be a harmless confusion if it didn=E2=80=99t go on to say =E2= =80=9C=E2=80=A6 long long integer less than 128 bits wide=E2=80=9D (???!!!)= Whereas in reality "long long int=E2=80=9D is 64 bits everywhere i have se= en. Read it more carefully, it says you can't express an integer constant of type __int128 on such platforms. So you can't write __int128 i =3D 999999999999999999999999999999999999999999999999999999999999;