From 885f5974cdf65b59415837ae97f5a14ef1350670 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 19:20:15 +0100 Subject: feat: add gzip and new headers --- lib/libm/ccosf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/libm/ccosf.c (limited to 'lib/libm/ccosf.c') diff --git a/lib/libm/ccosf.c b/lib/libm/ccosf.c new file mode 100644 index 00000000..8d4a8761 --- /dev/null +++ b/lib/libm/ccosf.c @@ -0,0 +1,10 @@ +#include "__complex.h" + +double complex ccos(double complex z) +{ + double ch, sh; + + cchsh(cimag(z), &ch, &sh); + + return cos(creal(z)) * ch - (sin(creal(z)) * sh) * I; +} -- cgit v1.2.3