From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63863 invoked by alias); 26 Aug 2015 11:04:41 -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 63848 invoked by uid 89); 26 Aug 2015 11:04:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_20,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-wi0-f180.google.com Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com) (209.85.212.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 26 Aug 2015 11:04:40 +0000 Received: by widdq5 with SMTP id dq5so42952603wid.1 for ; Wed, 26 Aug 2015 04:04:37 -0700 (PDT) X-Received: by 10.180.218.227 with SMTP id pj3mr3108609wic.59.1440587076980; Wed, 26 Aug 2015 04:04:36 -0700 (PDT) Received: from [192.168.1.7] (athedsl-340739.home.otenet.gr. [85.72.186.161]) by smtp.gmail.com with ESMTPSA id ib9sm3315310wjb.2.2015.08.26.04.04.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Aug 2015 04:04:36 -0700 (PDT) From: Kostas Savvidis Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: 128-bit integer - nonsensical documentation? Message-Id: <1B1111BE-E274-4C80-8189-22B78D77647A@gmail.com> Date: Wed, 26 Aug 2015 11:04:00 -0000 To: gcc-help@gcc.gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-SW-Source: 2015-08/txt/msg00176.txt.bz2 The online documentation contains the attached passage as part of the "C-Ex= tensions=E2=80=9D chapter. There are no actual machines which have an " int= eger mode wide enough to hold 128 bits=E2=80=9D as the document puts it. Th= is 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 (???!!!) Wh= ereas in reality "long long int=E2=80=9D 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 w= hich have an integer mode wide enough to hold 128 bits. Simply write __int1= 28 for a signed 128-bit integer, or unsigned __int128 for an unsigned 128-b= it integer. There is no support in GCC for expressing an integer constant o= f type __int128 for targets with long long integer less than 128 bits wide.