delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/04/09/11:33:17

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=C0dYAgjwawsvuY5pgHOu4HrvWLTUrK6DPSX9wR12+b5G8k3iJacYz
g/zNopPSdJcj0+Q44/43wKcIP5RHxKN4OGs8TDpjaHVtGi8sNWcPQam0iSxPqVfK
LHyQDKgYVJr1N6Iu22UtEyu95mhlZ0Dd2vCFI75ykIPnecXOL7Rn1E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=+XkTjjBdYPsxQ/UPzByoYqBXBmw=; b=EWAo4GRrhjXO3sBmqo8w2ISMiwCn
8TMvqWgbZjC/0VOWz/6ABM+hf91GEAqtfoLPRzNez/HVSNCFN/ocq7bnznFy5Qg1
Tc2015UXIjGGnfbUJDKU+7CCPACGRitiO+Mwyntqk0h5YXb/q02m51zIv5ODhk1+
Bcew3tiRsx1G6IU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=soegtrop, Soegtrop, dear, Dear
X-HELO: mout.kundenserver.de
Date: Mon, 9 Apr 2018 17:33:01 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Floating point exception in strtod()
Message-ID: <20180409153301.GH29703@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <dd5e98ea-8f39-1c4b-116c-37968cb3a52d AT cornell DOT edu> <20180409094706 DOT GO18998 AT calimero DOT vinschen DOT de> <0F7D3B1B3C4B894D824F5B822E3E5A177861A71E AT IRSMSX102 DOT ger DOT corp DOT intel DOT com>
MIME-Version: 1.0
In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A177861A71E@IRSMSX102.ger.corp.intel.com>
User-Agent: Mutt/1.9.2 (2017-12-15)
X-UI-Out-Filterresults: notjunk:1;V01:K0:fRjp7UYMmu4=:X+X1TYDff+8Qo/yOfsPZJR P50iBQDMPqjJ5f3+ZZloSS7zJVK1X2qDy2GhvSd/uqJyDP/S1XDfd9b2MtTzuylKF8bmJeStV J0RvQ2z99EbuTriKJIR7+KUxmd12+bNHg4F02BzMj0uMw4NIB/bXhrNRRON2y0NxtiN8malt3 EGZ9vpXoENTH6KBp8PWvhwo1bphO7luiBKJq50fgQHtoz657Cz8KEgNCYNwIK9+rS2qGi0/e4 kEEiFLTQxgDR8VjESEWLXiJNrfMuKjnI2O9ah9I1DHJZzyXmIGxvvQlWSt7ubbt/tSsJRbR3m 6sYiw4oDq8BgAZIEGFvaihsubjXc8w1JJJs37Akxa/30Q13gWXtkATSqU9It6lar4KmNoBztU 9WceZKe3wY0Ugs6u1BfCgMh2q+cHAn3dI2JVCl2l9KqmzTFdOcd4qanRFW8I8y99WiDqgqwiU 3cbVRmwiur8orsrFGXB5kYB5a7Ah9X//qVwBpEAuABPdyhVWwewF+yDRSEHERyDWZlOT6L4su 1t7sJyFDyoQzGrS7I8H03dZJOkg9zB21ePgTSRiagWRBl0z1twpUvyUh0L9YAJlDNDuf5aiW7 IjOg3zwCxsyYmnJNbb7f8INjHa42MFJbhO81zor1b0UVz+6I74AcfBnJlA5Jt9liIspWw8NfU QXXyE4ZV5oCBYkTIooWbC+ke5/7zYJzlarfONfUuxjsW/JAx/vbHTPkSlSbXwoalIg/wa1uWX Tjdn5aCNtWzwSaakhuXvCQdXBU1pNeZnm5b1dQ==

--+SfteS7bOf3dGlBC
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr  9 14:45, Soegtrop, Michael wrote:
> Dear Corinna,
>=20
> > L is of type Long =3D=3D int32_t, aadj is of type double.  The value of
> > aadj at this time is 2529648000.0 =3D=3D 0x96c75d80 which appears to be
> > perfectly valid for a 32 bit int.
>=20
> 2529648000 is a valid unsigned long, but not a valid signed long. The
> largest 32 bit long is 2^31-1 =3D 2147483647. 0x96c75d80 interpreted as
> a signed long is a negative number.
>=20
> I would say if floating point instructions are used to convert
> 2529648000 to a signed 32 bit integer, they should produce an
> FE_INVALID exception.

...which is what I described in the rest of my mail :)


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--+SfteS7bOf3dGlBC
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlrLh60ACgkQ9TYGna5E
T6Dslg//XSs6DUU+x6WQZbsw3vs4B0VRtDPOTmxcI24Jqlakc+qStwI2Looi8l3E
nJ/QiamtPb2GKKqCCT9pDM1XIaOuJk8U4JMO8dj1/11NUJ7of8Dtos5PPUJFL8oY
zwTsi4Pl3i9NitwssKL3YlME+8UhMidqb3nO5VjiqfBd3+2P/JV9CF5YSKynit0+
nCbz/9Fsd/QlUn/cfLKuFCuSJEp5wpdlp8cCHvQEp51mT6+YMlbuzXL4zsyrP7YF
r9xkEh945YfmP34oQfapPEgR1SZzUKRCVNli9aGYlGkM3OopqRH0o7Y/3qJu04VP
ghjx2D3qpcrSNlmMJf9aDLjkPtDTIiAL5KGCuRRpaXnFiwvpHsBBeYDhfPjgc8+G
uUdODqChrPwM6FdYxpUMpbNq4WLg8Hp4FbEvHUHmEwIdaW9igHYIyb0A+6NEN5H5
KcPvm97MjOut4Uxd01O7wVT0vHar0eRzckfsuPTFR8yjbCto1dlx0sEhcPE/TDzR
0UM9xTaoi/QUc5MSOkHlWDukVy9YF0rOU8/jVZe+QpZTqs1lQHn9SJWJ87e95jLF
qY+6HmMr4cnly5Mg74VAdClrsRX7giPdt6EWTmUS76DRTJIIP9ImZLdEDCwY4Stq
6j5h4P5eGwjB9AhKdN3zFxu1SUN/CQxFDUqZ7wsFcvf4snj3RSQ=
=8d2l
-----END PGP SIGNATURE-----

--+SfteS7bOf3dGlBC--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019