complex: add C11 CMPLX macros and replace cpack with them

This commit is contained in:
Szabolcs Nagy 2012-11-13 01:31:49 +01:00
commit cfbaba79a2
47 changed files with 152 additions and 156 deletions

View file

@ -2,6 +2,6 @@
float complex csinf(float complex z)
{
z = csinhf(cpackf(-cimagf(z), crealf(z)));
return cpackf(cimagf(z), -crealf(z));
z = csinhf(CMPLXF(-cimagf(z), crealf(z)));
return CMPLXF(cimagf(z), -crealf(z));
}