blob: f007d6f6f700c72bb387c6909b82e2a4f2dc17dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# define TGSOURCE "complex/cimag.c"
#include "_tgmath.h"
#include <complex.h>
TYPE TGFN(cimag)(TYPE complex z)
{
union {
complex TYPE c;
TYPE f[2];
} u = { .c = z };
return u.f[1];
}
/*d
The cimag functions compute the imaginary part of z. 164)
d*/
/*r
The cimag functions return the imaginary part value (as a real).
r*/
/*
STDC(199901)
LINK(m)
*/
|