/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_csinh.c | 67 return (CMPLX(sinh(x), y)); in csinh() 69 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y))); in csinh() 75 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh() 78 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in csinh() 79 return (CMPLX(creal(z) * copysign(1, x), cimag(z))); in csinh() 83 return (CMPLX(h * cos(y), h * h * sin(y))); in csinh() 97 return (CMPLX(x, y - y)); in csinh() 105 return (CMPLX(x + x, y)); in csinh() 116 return (CMPLX(y - y, y - y)); in csinh() 131 return (CMPLX(x, y - y)); in csinh() [all …]
|
D | s_ccosh.c | 67 return (CMPLX(cosh(x), x * y)); in ccosh() 69 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y))); in ccosh() 75 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh() 78 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in ccosh() 79 return (CMPLX(creal(z), cimag(z) * copysign(1, x))); in ccosh() 83 return (CMPLX(h * h * cos(y), h * sin(y))); in ccosh() 98 return (CMPLX(y - y, x * copysign(0, y))); in ccosh() 108 return (CMPLX(x * x, copysign(0, x) * y)); in ccosh() 119 return (CMPLX(y - y, x * (y - y))); in ccosh() 132 return (CMPLX(INFINITY, x * (y - y))); in ccosh() [all …]
|
D | s_cexp.c | 53 return (CMPLX(exp(x), y)); in cexp() 57 return (CMPLX(cos(y), sin(y))); in cexp() 62 return (CMPLX(y - y, y - y)); in cexp() 65 return (CMPLX(0.0, 0.0)); in cexp() 68 return (CMPLX(x, y - y)); in cexp() 87 return (CMPLX(exp_x * cos(y), exp_x * sin(y))); in cexp()
|
D | s_csqrt.c | 61 return (CMPLX(0, b)); in csqrt() 63 return (CMPLX(INFINITY, b)); in csqrt() 66 return (CMPLX(a, t)); /* return NaN + NaN i */ in csqrt() 76 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt() 78 return (CMPLX(a, copysign(b - b, b))); in csqrt() 97 result = CMPLX(t, b / (2 * t)); in csqrt() 100 result = CMPLX(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
|
D | s_ctanh.c | 105 return (CMPLX((x + 0) * (y + 0), in ctanh() 108 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh() 116 return (CMPLX(y - y, y - y)); in ctanh() 125 return (CMPLX(copysign(1, x), in ctanh() 135 return (CMPLX((beta * rho * s) / denom, t / denom)); in ctanh() 143 z = ctanh(CMPLX(cimag(z), creal(z))); in ctan() 144 return (CMPLX(cimag(z), creal(z))); in ctan()
|
D | catrig.c | 289 return (CMPLX(x, y + y)); in casinh() 292 return (CMPLX(y, x + x)); in casinh() 295 return (CMPLX(x + x, y)); in casinh() 301 return (CMPLX(x + 0.0L + (y + 0), x + 0.0L + (y + 0))); in casinh() 310 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y))); in casinh() 328 return (CMPLX(copysign(rx, x), copysign(ry, y))); in casinh() 338 double complex w = casinh(CMPLX(cimag(z), creal(z))); in casin() 340 return (CMPLX(cimag(w), creal(w))); in casin() 373 return (CMPLX(y + y, -INFINITY)); in cacos() 376 return (CMPLX(x + x, -y)); in cacos() [all …]
|
D | s_conj.c | 37 return (CMPLX(creal(z), -cimag(z))); in conj()
|
D | s_cproj.c | 42 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
|
D | k_exp.c | 106 return (CMPLX(cos(y) * exp_x * scale1 * scale2, in __ldexp_cexp()
|
D | math_private.h | 475 #ifndef CMPLX 477 CMPLX(double x, double y) in CMPLX() function
|
/bionic/libm/include/ |
D | complex.h | 51 #define CMPLX(x, y) ((double complex){ x, y }) macro 55 #define CMPLX(x, y) __builtin_complex((double)(x), (double)(y)) macro
|