| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <19c433eb0708240916t48556c38k563ada260702e1fd@mail.gmail.com> |
| Date: | Fri, 24 Aug 2007 17:16:23 +0100 |
| From: | "=?ISO-8859-1?Q?Fran=E7ois-Xavier_Coudert?=" <fxcoudert AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Problem with lroundf() |
| MIME-Version: | 1.0 |
| 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 |
Hi all,
I think the following exhibits a bug in the lroundf() routine:
$ cat a.c
#include <math.h>
#include <stdio.h>
int main (void) {
printf ("%d\n", (int) lroundf(0.7));
}
$ gcc a.c && ./a.exe
0
The result of lroundf(0.7) should be 1, not 0. If lround() is used
instead of lroundf(), then it's working OK.
I didn't file a PR in bugzilla because the bug report instructions say
to send a mail to this list, but I can open one if need be.
Thanks,
FX
PS: the list of packages probably relevant is following. Please ask if
you need any more information.
Package Version
base-files 3.7-1
cygrunsrv 1.17-1
cygutils 1.3.1-1
cygwin 1.5.24-2
gcc 3.4.4-3
gcc-core 3.4.4-3
--
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 |