__complex__ float __cacosf (__complex__ float x) { __complex__ float y; __complex__ float res; int rcls = fpclassify (__real__ x); int icls = fpclassify (__imag__ x); if (rcls <= FP_INFINITE || icls <= FP_INFINITE || (rcls == FP_ZERO && icls == FP_ZERO)) { y = __casinf (x); __real__ res = (float) M_PI_2 - __real__ y; if (__real__ res == 0.0f) __real__ res = 0.0f; __imag__ res = -__imag__ y; } else { __real__ y = -__imag__ x; __imag__ y = __real__ x; y = __kernel_casinhf (y, 1); __real__ res = __imag__ y; __imag__ res = __real__ y; } return res; }
__complex__ float __cacosf (__complex__ float x) { __complex__ float y; __complex__ float res; y = __casinf (x); __real__ res = (float) M_PI_2 - __real__ y; __imag__ res = -__imag__ y; return res; }