www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <42C41685.5FE33AEA@dessent.net> |
Date: | Thu, 30 Jun 2005 08:57:57 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: SV: Bug in printf ? |
References: | <SERRANOPL83mxMAKytt000002d1 AT SERRANO DOT CAM DOT ARTIMI DOT COM> |
X-Spam-Report: | -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Dave Korn wrote: > Absolutely, there's a rounding error of some sort. Compare the difference > when compiling the testcase with -mno-cygwin (i.e. using mingw maths lib): Isn't this just a case of the Cygwin math library choosing "round to even" and the MSVCRT/mingw library choosing "0.5 always rounds up"? The Goldberg paper covers this, and in fact it claims the IEEE standard requires round to even for all results of addition, subtraction, multiplication, and division. Sooo, doesn't look like a bug at all to me. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |