blob: 8bd80581ae0d7d2ad42ceed52332570078f50943 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "complex_impl.h"
float complex cacoshf(float complex z)
{
int zineg = signbit(cimagf(z));
z = cacosf(z);
if (zineg) return CMPLXF(cimagf(z), -crealf(z));
else return CMPLXF(-cimagf(z), crealf(z));
}
|