diff options
Diffstat (limited to 'libc-top-half/musl/src/complex/cacosf.c')
-rw-r--r-- | libc-top-half/musl/src/complex/cacosf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/complex/cacosf.c b/libc-top-half/musl/src/complex/cacosf.c new file mode 100644 index 0000000..ed8acf0 --- /dev/null +++ b/libc-top-half/musl/src/complex/cacosf.c @@ -0,0 +1,11 @@ +#include "complex_impl.h" + +// FIXME + +static const float float_pi_2 = M_PI_2; + +float complex cacosf(float complex z) +{ + z = casinf(z); + return CMPLXF(float_pi_2 - crealf(z), -cimagf(z)); +} |