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
parent e2fe959fe2
commit cfbaba79a2
47 changed files with 152 additions and 156 deletions

View File

@ -8,7 +8,7 @@ long double complex csinl(long double complex z)
#else
long double complex csinl(long double complex z)
{
z = csinhl(cpackl(-cimagl(z), creall(z)));
return cpackl(cimagl(z), -creall(z));
z = csinhl(CMPLXL(-cimagl(z), creall(z)));
return CMPLXL(cimagl(z), -creall(z));
}
#endif