This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
[niles@axp745.gsfc.nasa.gov] libc/1159: floor() function is totally broken
- To: libc-alpha@sourceware.cygnus.com
- Subject: [niles@axp745.gsfc.nasa.gov] libc/1159: floor() function is totally broken
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 12 Jun 1999 08:27:47 +0200
Hi,
anybody with an alpha that can reproduce (and fix;-) the described
problem?
Andreas
- Subject: libc/1159: floor() function is totally broken
- From: niles@axp745.gsfc.nasa.gov
- Date: Sat Jun 12 08:26:38 1999
Topics:
libc/1159: floor() function is totally broken
----------------------------------------------------------------------
Date: Sat, 12 Jun 1999 01:27:29 -0400
From: niles@axp745.gsfc.nasa.gov
To: bugs@gnu.org
Subject: libc/1159: floor() function is totally broken
Message-Id: <199906120527.BAA02581@delysid.gnu.org>
>Number: 1159
>Category: libc
>Synopsis: floor() function is totally broken
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: libc-gnats
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Sat Jun 12 01:30:01 EDT 1999
>Last-Modified:
>Originator: niles@axp745.gsfc.nasa.gov
>Organization:
net
>Release: glibc-1.1.2
>Environment:
RedHat Linux 6.0, AlphaStation 200 (21064), glibc-1.1.2
>Description:
The floor() function libm seems completely broken. It returns random
values. It may just be on certain processors (21064's, but not 21164's)
Using the CPML in place of the GNU libm works around the problem.
>How-To-Repeat:
#include <stdio.h>
#include <math.h>
int
main()
{
printf("%f\n",floor(0.1));
return 0;
}
- -----------------
%0
>Fix:
>Audit-Trail:
>Unformatted:
------------------------------
End of forward6KAGJD Digest
***************************
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de