mirror of
https://github.com/fluencelabs/musl
synced 2025-06-26 21:22:11 +00:00
complex: add C11 CMPLX macros and replace cpack with them
This commit is contained in:
@ -9,7 +9,7 @@ long double complex cprojl(long double complex z)
|
||||
long double complex cprojl(long double complex z)
|
||||
{
|
||||
if (isinf(creall(z)) || isinf(cimagl(z)))
|
||||
return cpackl(INFINITY, copysignl(0.0, creall(z)));
|
||||
return CMPLXL(INFINITY, copysignl(0.0, creall(z)));
|
||||
return z;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user