From 13e400b3559666b5e584bdf6f8450aad826b43ae Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 22 Mar 2012 15:54:55 -0400 Subject: add creal/cimag macros in complex.h (and use them in the functions defs) --- src/complex/cimagf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/complex/cimagf.c') diff --git a/src/complex/cimagf.c b/src/complex/cimagf.c index 99fffc58..f7bcd76e 100644 --- a/src/complex/cimagf.c +++ b/src/complex/cimagf.c @@ -2,6 +2,5 @@ float (cimagf)(float complex z) { - union fcomplex u = {z}; - return u.a[1]; + return cimagf(z); } -- cgit 1.4.1