blob: c08ae122ae7f4e0f16f10b03f7839508330dc6e8 (
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 z[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)
*/
|