about summary refs log tree commit diff
path: root/src/complex/cprojf.c
blob: 03fab339d9215dc589142444f9440195549339e3 (plain) (blame)
1
2
3
4
5
6
7
8
#include "complex_impl.h"

float complex cprojf(float complex z)
{
	if (isinf(crealf(z)) || isinf(cimagf(z)))
		return CMPLXF(INFINITY, copysignf(0.0, crealf(z)));
	return z;
}