fix reversed argument order x86_64 sigsetjmp's call to sigprocmask
[musl] / include / complex.h
index b4bcb22..13a45c5 100644 (file)
@@ -112,6 +112,13 @@ long double creall(long double complex);
 #define cimagf(x) __CIMAG(x, float)
 #define cimagl(x) __CIMAG(x, long double)
 
+#define __CMPLX(x, y, t) \
+       ((union { _Complex t __z; t __xy[2]; }){.__xy = {(x),(y)}}.__z)
+
+#define CMPLX(x, y) __CMPLX(x, y, double)
+#define CMPLXF(x, y) __CMPLX(x, y, float)
+#define CMPLXL(x, y) __CMPLX(x, y, long double)
+
 #ifdef __cplusplus
 }
 #endif