i386/85101: nearbyint always returns nan
Haejoong Lee
haepal at gmail.com
Fri Aug 19 00:10:16 GMT 2005
>Number: 85101
>Category: i386
>Synopsis: nearbyint always returns nan
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-i386
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 19 00:10:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Haejoong Lee
>Release: 5.4-RELEASE, 5.4-RC4
>Organization:
Linguistic Data Consortium
>Environment:
FreeBSD mayor.ldc.upenn.edu 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
FreeBSD katz.ldc.upenn.edu 5.4-RC4 FreeBSD 5.4-RC4 #0: Tue May 3 21:41:34 EDT 2005 root at katz.ldc.upenn.edu:/usr/src/sys/i386/compile/DEVSMP i386
>Description:
The following program prints out "nan"'s instead of some numbers.
#include <stdio.h>
#include <math.h>
int main()
{
double x = -100.0;
for (; x < 100.0; x+= 0.1)
printf("%f\n", nearbyint(x));
}
I also saw this happening on 5.3-STABLE, but it didn't happen 5.4-STABLE amd64.
>How-To-Repeat:
Compile the program above and run it.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-i386
mailing list