From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123341 invoked by alias); 14 Aug 2018 09:56:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 123318 invoked by uid 89); 14 Aug 2018 09:56:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-105.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Aug 2018 09:56:22 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MA0ZU-1fitIZ3Mj2-00B4V4 for ; Tue, 14 Aug 2018 11:56:19 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 0A986A80590; Tue, 14 Aug 2018 11:56:19 +0200 (CEST) Date: Tue, 14 Aug 2018 09:56:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: strtod ("nan") returns negative NaN Message-ID: <20180814095618.GT3747@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20180814.100952.1684125661222835312.trueroad@trueroad.jp> <20180814.113135.1571893395887584078.trueroad@trueroad.jp> <20180814.134527.917341694729989717.trueroad@trueroad.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jigfid2yHjNFZUTO" Content-Disposition: inline In-Reply-To: <20180814.134527.917341694729989717.trueroad@trueroad.jp> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-08/txt/msg00168.txt.bz2 --jigfid2yHjNFZUTO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1134 On Aug 14 13:45, Masamichi Hosoda wrote: > >From a50ee5a4747a99c70469a53fe959f3dc22d3b79a Mon Sep 17 00:00:00 2001 > From: Masamichi Hosoda > Date: Tue, 14 Aug 2018 12:50:32 +0900 > Subject: [PATCH] Fix strtod ("nan") returns qNaN >=20 > The definition of qNaN for x86_64 and x86 was wrong. > So strtod ("nan") returned sNaN instead of qNaN. >=20 > Furthermore, it was inverted the sign bit with the presence of `-` charac= ter. > So strtod ("-nan") returned qNaN. >=20 > This commit fixes definition of qNaN > and removes the sign bit inversion when evaluating "nan". > --- > newlib/libc/stdlib/gd_qnan.h | 8 ++++---- > newlib/libc/stdlib/strtod.c | 1 + > 2 files changed, 5 insertions(+), 4 deletions(-) Can you please send this patch to the newlib AT sourceware DOT org mailing list? As soon as something in newlib gets changed, a lot of other targets are affected and the guys working on those targets should have a chance to chime in. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --jigfid2yHjNFZUTO Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAltyp0IACgkQ9TYGna5E T6B2IA//aR8SlbT+Ql97zAmbVR1mXq+1L1PtCzOTHYV+TynTr8At8f0klNBuNmXt K/VwCxNcgQJTlSN2uBmF9gvmzKQ+9r6gRD//x6pFGOHtndo7TB04dsqEVWGhB6/j JIzEpw5SUlOGJ1bhOxzuVpGGDr7kFP/qGan5demHqOE7BaJoFQMMgDvRXuJe7lNc umG+EGVpztQLe3ikGrw5aNIw7n+zA42pbggaMD+nu0EFP9DBi/vxNFXey11iKPJ2 zLm8XhJdLsWYsl6dQq5UKA1aZlCg7KX0tq5U4dF3pN/b1pEOvOagSLVLLZ7uHO6f PT27KyUWYm59E+U2PBXUnN0adyEL/Pksr5th4MLkolNeqV000Sxwnhmis+aYRZAi UdSa/Ak25ArH4AeP5xQsMwUcabftajZgmtVF/IzW9YoIHruUc1InH7/YpZZ/T4Fh yuyS1/q2HpvUxwlPXZHRnw4XBZA14LpUDeHG2kQa+jKSIhKNJ6q5Wtr3jCt0xxOz kOWVsSMih/XkaGu2YzV+z1Rg1cTO9NnZOVjbgCJZo5yDwIoluiJjN0jZbewJnixt wx84AR5plazb7KASCV0nqh2h1qRGuYv0OPmPKUUeTC0RatdenQUmuGKbkoVdUQaQ RnY3Q7D1kFIXp/BCRHbN7DtqVL8byIvLyGlw4JjuQPKJxAo3fp0= =HEmD -----END PGP SIGNATURE----- --jigfid2yHjNFZUTO--