about summary refs log tree commit diff
path: root/src/complex/cprojl.c
blob: 531ffa1c5e85d2fb93c6845a6a240e5091c98650 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "complex_impl.h"

#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long double complex cprojl(long double complex z)
{
	return cproj(z);
}
#else
long double complex cprojl(long double complex z)
{
	if (isinf(creall(z)) || isinf(cimagl(z)))
		return CMPLXL(INFINITY, copysignl(0.0, cimagl(z)));
	return z;
}
#endif