diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-03-03 21:18:51 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-03-03 21:18:51 -0500 |
| commit | 7531afc84c78bce8dfaf199a72db5d63ded16a30 (patch) | |
| tree | 20029676456a106b2bf361b461b1ef689a94fe3e /src/complex/_Imaginary_I.c | |
| parent | 1a58ea99eebe390da58e60e61c333e060364af9e (diff) | |
get around to implementing
Diffstat (limited to 'src/complex/_Imaginary_I.c')
| -rw-r--r-- | src/complex/_Imaginary_I.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/complex/_Imaginary_I.c b/src/complex/_Imaginary_I.c index 9357dc4f..052ecfc5 100644 --- a/src/complex/_Imaginary_I.c +++ b/src/complex/_Imaginary_I.c @@ -1,10 +1,15 @@ #include <complex.h> #ifdef __STDC_IEC_559_COMPLEX__ -#define _Imaginary_I (const float _Imaginary)1 /* TODO: imaginary unit */ +#define _Imaginary_I \ + (((union { \ + float _Imaginary __i; \ + float __f; \ + }){ .__f = 1.0 }).__i) #endif /* This should only be defined if imaginary types are supported. */ + /* STDC(199901) */ |
