diff options
Diffstat (limited to 'libc-top-half/musl/src/complex/cargl.c')
-rw-r--r-- | libc-top-half/musl/src/complex/cargl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/complex/cargl.c b/libc-top-half/musl/src/complex/cargl.c new file mode 100644 index 0000000..88f95f9 --- /dev/null +++ b/libc-top-half/musl/src/complex/cargl.c @@ -0,0 +1,13 @@ +#include "complex_impl.h" + +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 +long double cargl(long double complex z) +{ + return carg(z); +} +#else +long double cargl(long double complex z) +{ + return atan2l(cimagl(z), creall(z)); +} +#endif |