This makes it easier to build musl math code with a compiler that does not support complex types (tcc) and in general more sensible factorization of the internal headers.
8 lines
151 B
C
8 lines
151 B
C
#include "complex_impl.h"
|
|
|
|
float complex csinf(float complex z)
|
|
{
|
|
z = csinhf(CMPLXF(-cimagf(z), crealf(z)));
|
|
return CMPLXF(cimagf(z), -crealf(z));
|
|
}
|