From fcb83049b1942fafa784fc51869818651c04acbb Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 27 Feb 2019 18:29:03 -0500 Subject: basic implementation --- src/complex/_Complex_I.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/complex/_Complex_I.c') 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 -#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) -- cgit v1.2.1