This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/14886] New: cproj does not work in glibc >2.12 on both power and x86
- From: "guojiufu at cn dot ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 28 Nov 2012 04:06:50 +0000
- Subject: [Bug math/14886] New: cproj does not work in glibc >2.12 on both power and x86
- Auto-submitted: auto-generated
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.