From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9797 invoked from network); 31 May 2023 14:43:10 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 31 May 2023 14:43:10 -0000 Received: (qmail 16046 invoked by uid 550); 31 May 2023 14:43:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 15992 invoked from network); 31 May 2023 14:43:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version; bh=WNcmCsWECuZbiFNlYOmjBWPAhaUrMlx4z3E2QKTHudY=; b=mwix86DwbGxXYTdY2J6G+fIQFoQ/wc6UP/uW8D+in3kkkwBPnGh0vwdq C3fKi9XNv/sbLPqzuyYaXtAh3WYlQ0iJcLCKahFMIL19RRHwun9rrzFzT zblGfqkMetQciWW6XJUpXbtcb5QsIMJdAauwQ80pS+ERyVmHzlLBBQLWJ 8=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,207,1681164000"; d="scan'208";a="57466920" Date: Wed, 31 May 2023 16:42:54 +0200 From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt To: Rich Felker Cc: musl@lists.openwall.com Message-ID: <20230531164254.7a867552@inria.fr> In-Reply-To: <20230531142743.GB4163@brightrain.aerifal.cx> References: <1c8e850ed3190af39b9e3f501d79899d438e7292.1685536608.git.Jens.Gustedt@inria.fr> <20230531142743.GB4163@brightrain.aerifal.cx> Organization: inria.fr X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/bZGCZ9Z9qSTbTC2Pr8vt7po"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Re: [musl] [C23 128 bit 4/4] C23: implement proper support for int128_t and uint128_t --Sig_/bZGCZ9Z9qSTbTC2Pr8vt7po Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Rich, on Wed, 31 May 2023 10:27:44 -0400 you (Rich Felker ) wrote: > (This was the whole reason _BitInt was added, no?) No, not at all. These are added to have - types for any width, not only multiples of 8 - potentially have types that have thousands of bits (clang seems to be keen to do so) - types that have different rules for conversions, in particular no promot= ion. These are explicitly not allowed to be used for the [u]intXXX_t types. They only appear in the patches I propose as a means to encode number literals of the appropriate width. These are used with casts, such that they end up with the correct types. Thanks J=E2=82=91=E2=82=99=E2=82=9B --=20 :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Universit=C3=A9 de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: =E2=98=8E +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/bZGCZ9Z9qSTbTC2Pr8vt7po Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCZHdc7gAKCRAP0+hp2tU3 4mgWAKCQHs9yY3u3DnNPyny9iRYYDDDwCQCeKud2tWVTXW/bbJLJmRhuEVA5tpg= =JYc/ -----END PGP SIGNATURE----- --Sig_/bZGCZ9Z9qSTbTC2Pr8vt7po--