Wrote in macros
This commit is contained in:
parent
9ae9826930
commit
ae2ee7f8e5
1 changed files with 19 additions and 0 deletions
19
include/complex.h
Normal file
19
include/complex.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef _COMPLEX_H
|
||||
#define _COMPLEX_H
|
||||
|
||||
#define complex _Complex
|
||||
#define _Complex_I (float _Imaginary) (1.0fi)
|
||||
#ifdef __STDC_IEC_559_COMPLEX__
|
||||
#define imaginary _Imaginary
|
||||
#define _Imaginary_I (float _Imaginary) (1.0fi)
|
||||
#endif
|
||||
|
||||
#ifdef _Imaginary_I
|
||||
#define I _Imaginary_I
|
||||
#else
|
||||
#define I _Complex_I
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue