Date: Fri, 19 Aug 2005 00:09:05 GMT From: Haejoong Lee <haepal@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/85101: nearbyint always returns nan Message-ID: <200508190009.j7J095UC001443@www.freebsd.org> Resent-Message-ID: <200508190010.j7J0AFVM097576@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508190009.j7J095UC001443>