[Bug libc/5490] New: cimagf gives incorrect results
ismail at pardus dot org dot tr
sourceware-bugzilla@sourceware.org
Mon Dec 17 00:26:00 GMT 2007
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.
More information about the Glibc-bugs
mailing list