summaryrefslogtreecommitdiff
path: root/lib/libm/conjl.c
blob: 7371c11d64d112c89c4138cb14750940c6971f19 (plain)
1
2
3
4
5
6
7
8
9
10
#include "__complex.h" // for IMAG_PART, long_double_complex

#include <complex.h> // for complex, conjl

long double complex conjl(long double complex z)
{
	long_double_complex w = { .z = z };
	IMAG_PART(w) = -IMAG_PART(w);
	return (w.z);
}