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 math/14886] New: cproj does not work in glibc >2.12 on both power and x86


http://sourceware.org/bugzilla/show_bug.cgi?id=14886

             Bug #: 14886
           Summary: cproj does not work in glibc >2.12 on both power and
                    x86
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: guojiufu@cn.ibm.com
    Classification: Unclassified


#include <stdio.h>
#include <complex.h>

int main()
{
  float complex fc1, fc4=3+4*I;
  float f1_r,f1_i;
  fc1=cprojf(fc4);
  f1_r=crealf(fc1);
  f1_i=cimagf(fc1);

  printf("fc1 = (%f) + (%f)i\n", f1_r,f1_i);
  return 55;
}
--------t.c------
gcc t.c -lm
./a.out
fc1 = (3.000000) + (4.000000)i

the expected output:
fc1 = (0.230769) + (0.307692)i

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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