This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5490] New: cimagf gives incorrect results


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]