aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/options/ansi/generic/complex/fdlibm.h
blob: 75cdd2a8aed6b4bf6fd68f3fa970a180b1e88a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __MLIBC_FDLIBM_H
#define __MLIBC_FDLIBM_H

#define REAL_PART(z)    ((z).parts[0])
#define IMAG_PART(z)    ((z).parts[1])

typedef union {
        float complex z;
        float parts[2];
} float_complex;

typedef union {
        double complex z;
        double parts[2];
} double_complex;

#endif