summaryrefslogtreecommitdiff
path: root/lib/libm/conjf.c
blob: 31399fb71666753fff30b6f7b0d6b87b197e167d (plain)
1
2
3
4
5
6
7
8
9
10
#include "__complex.h" // for IMAG_PART, float_complex

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

float complex conjf(float complex z)
{
	float_complex w = { .z = z };
	IMAG_PART(w) = -IMAG_PART(w);
	return (w.z);
}