summaryrefslogtreecommitdiff
path: root/src/complex/conj.c
blob: 6f90411f2ff72efb083c787ebf654b62caadacb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# define TGSOURCE "complex/conj.c"
#include "_tgmath.h"

#include <complex.h>

TYPE complex TGFN(conj)(TYPE complex z)
{
	return TGFN(creal)(z) - TGFN(cimag)(z);
}

/*d
The conj functions compute the complex conjugate of z, by rev ersing the sign of its
imaginary part.
d*/

/*r
The conj functions return the complex conjugate value.
r*/

/*
STDC(199901)
LINK(m)
*/