diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-27 18:29:03 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-27 18:29:03 -0500 |
| commit | fcb83049b1942fafa784fc51869818651c04acbb (patch) | |
| tree | 199b1662036ac4a5121d755a7a48a2b3c7b3dac2 /src/complex/_Complex_I.c | |
| parent | 5dcfbbdbe08fe7b8cab61ad8f2fe3cd167cb2fc3 (diff) | |
basic implementation
Diffstat (limited to 'src/complex/_Complex_I.c')
| -rw-r--r-- | src/complex/_Complex_I.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/complex/_Complex_I.c b/src/complex/_Complex_I.c index 0cb6aede..a250d031 100644 --- a/src/complex/_Complex_I.c +++ b/src/complex/_Complex_I.c @@ -1,6 +1,8 @@ #include <complex.h> -#define _Complex_I (const float _Complex)1 /* TODO: imaginary unit */ +#define _Complex_I \ + (((union { _Complex float __c; float __f[2]; }){.__f = {0., 1.} }).__c) + /* STDC(199901) |
