summaryrefslogtreecommitdiff
path: root/src/internal/libm.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-22 15:54:55 -0400
committerRich Felker <dalias@aerifal.cx>2012-03-22 15:54:55 -0400
commit13e400b3559666b5e584bdf6f8450aad826b43ae (patch)
treefb19a9f228b2a78dc8e8afc8f7d3439b0865c736 /src/internal/libm.h
parent132f0a00831d3b64cc6ae35df69d6865516c64b5 (diff)
downloadmusl-13e400b3559666b5e584bdf6f8450aad826b43ae.tar.gz
musl-13e400b3559666b5e584bdf6f8450aad826b43ae.tar.bz2
musl-13e400b3559666b5e584bdf6f8450aad826b43ae.tar.xz
musl-13e400b3559666b5e584bdf6f8450aad826b43ae.zip
add creal/cimag macros in complex.h (and use them in the functions defs)
Diffstat (limited to 'src/internal/libm.h')
-rw-r--r--src/internal/libm.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/internal/libm.h b/src/internal/libm.h
index 67c42b98..8c5474a8 100644
--- a/src/internal/libm.h
+++ b/src/internal/libm.h
@@ -173,14 +173,6 @@ union lcomplex {
long double a[2];
};
-// FIXME: move to complex.h ?
-#define creal(z) ((double)(z))
-#define crealf(z) ((float)(z))
-#define creall(z) ((long double)(z))
-#define cimag(z) ((union dcomplex){(z)}.a[1])
-#define cimagf(z) ((union fcomplex){(z)}.a[1])
-#define cimagl(z) ((union lcomplex){(z)}.a[1])
-
/* x + y*I is not supported properly by gcc */
#define cpack(x,y) ((union dcomplex){.a={(x),(y)}}.z)
#define cpackf(x,y) ((union fcomplex){.a={(x),(y)}}.z)