blob: 80c675ca0889c5a710601fc6576efdabb872556a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "__complex.h"
long double complex cprojl(long double complex z)
{
long_double_complex w = { .z = z };
if (isinf(creall(z)) || isinf(cimagl(z))) {
REAL_PART(w) = (long double)INFINITY;
IMAG_PART(w) = copysignl(0.0L, cimagl(z));
}
return (w.z);
}
|