From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from elaine.keithp.com (home.keithp.com [63.227.221.253]) by sourceware.org (Postfix) with ESMTPS id B6F013857C7C for ; Mon, 24 Aug 2020 15:34:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B6F013857C7C Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id 33E853F2C37C; Mon, 24 Aug 2020 08:33:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id P0Tp2_lDg-Cm; Mon, 24 Aug 2020 08:33:58 -0700 (PDT) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id D0D393F2C33D; Mon, 24 Aug 2020 08:33:58 -0700 (PDT) Received: by keithp.com (Postfix, from userid 1000) id 9C3781582201; Mon, 24 Aug 2020 08:33:58 -0700 (PDT) From: "Keith Packard" To: Corinna Vinschen via Newlib , newlib@sourceware.org Cc: Corinna Vinschen Subject: Re: [PATCH 1/2] Avoid implicit floating point conversions [v2] In-Reply-To: <20200824095821.GA3272@calimero.vinschen.de> References: <20200821003539.942952-1-keithp@keithp.com> <20200821003539.942952-2-keithp@keithp.com> <20200824095821.GA3272@calimero.vinschen.de> Date: Mon, 24 Aug 2020 08:33:58 -0700 Message-ID: <87r1rwf47t.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2020 15:34:01 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Corinna Vinschen via Newlib writes: > Not taking implicit compiler optimisations into account, wouldn't it > make more sense to avoid the conversion altogether, using > __builtin_inf() in these places? Yeah, could do that instead. I think it's mostly a matter of what looks better -- using the "standard" value of INFINITY and casting or using a compiler internal value without. I think it'll confuse an equal number of people either way. Any preferences? =2D-=20 =2Dkeith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl9D3eYACgkQ2yIaaQAA ABE77A//UH3tlvUzQ4jwPjOAmS5bhTRqDYz3CvM3dlZEKInoYnIQrmfQq6IOKq5V vJLMvFF98QB9YleIzvpo13+x84TzsmZ7JXmO6T/agIMYdV/lT4dKfEsJDYyTgq3f Upw895lXMbndgWthCU5l5PYkCDmW6qO8Bf9YL64ukNyLflr8JqlpaAQ6oa+D4UkQ o4qygdfI4ysZmrqeUZXMH/agpSmIJ7AOHxfWKavtEASNmJ6ezsSNrrVq0mRnckR7 B3oTkuOc/qaUpFx/ixK4DwSpFojymlA9XPQ7TRP86wZT3XLyvENnGyIeUfBRmCxt B2epFlrcZymUEkM3dX5v5oBcCoXr6cUK+Vx3YZeCwc2EUFRgf3ZoOZIRRPnhB5se +SquTQYSaRp1T46rPaP6qJo0G5nL52vSCdqWiKBd2DuT9ruXtWgpnoX+FFdYbXal WAUF2muBngFsN7gjkAPDh1y+QHgpzCLCL2WDqbl7JMrKeC3T3iRefZ7n76VZbMs8 ToqdGVRZGgaSbGe/hpyGfHzP0peanbC5soqfEeZU4qnjmIqlRkUEUgFKra1QYEnt Ziv8PnnQvu4avALGx3VQAIx4NQ9br9H/ZA5gks7mfbHg4bRv32lzWqNK74SaC4tH Raeov6YYXT3dv6+nq4TSYOUupFH+1zG6GvzR+uE0pXShtL7JNpQ= =LlAf -----END PGP SIGNATURE----- --=-=-=--