This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5490] New: cimagf gives incorrect results
- From: "ismail at pardus dot org dot tr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Dec 2007 00:26:18 -0000
- Subject: [Bug libc/5490] New: cimagf gives incorrect results
- Reply-to: sourceware-bugzilla at sourceware dot org
This is a stripped down testcase from gfortran testcases converted to C :
#include <complex.h>
#include <stdio.h>
int main() {
float complex volatile z, one;
z = 5.0;
one = 1.0;
z = cpowf (z, one);
printf("%f\n", (double)cimagf(z));
return 0;
}
prints -0.000141 with libc 2.7 where as it prins 0.000000 with libc 2.3.6 and
libc 2.4.11 on i686 host.
--
Summary: cimagf gives incorrect results
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: ismail at pardus dot org dot tr
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: i686-gnu-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=5490
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.