/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_csinh.c | 69 return (CMPLX(sinh(x), y)); in csinh() 71 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y))); in csinh() 77 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh() 80 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in csinh() 81 return (CMPLX(creal(z) * copysign(1, x), cimag(z))); in csinh() 85 return (CMPLX(h * cos(y), h * h * sin(y))); in csinh() 99 return (CMPLX(x, y - y)); in csinh() 107 return (CMPLX(x + x, y)); in csinh() 118 return (CMPLX(y - y, y - y)); in csinh() 133 return (CMPLX(x, y - y)); in csinh() [all …]
|
D | s_ccosh.c | 69 return (CMPLX(cosh(x), x * y)); in ccosh() 71 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y))); in ccosh() 77 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh() 80 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in ccosh() 81 return (CMPLX(creal(z), cimag(z) * copysign(1, x))); in ccosh() 85 return (CMPLX(h * h * cos(y), h * sin(y))); in ccosh() 100 return (CMPLX(y - y, x * copysign(0, y))); in ccosh() 110 return (CMPLX(x * x, copysign(0, x) * y)); in ccosh() 121 return (CMPLX(y - y, x * (y - y))); in ccosh() 134 return (CMPLX(INFINITY, x * (y - y))); in ccosh() [all …]
|
D | catrig.c | 291 return (CMPLX(x, y + y)); in casinh() 294 return (CMPLX(y, x + x)); in casinh() 297 return (CMPLX(x + x, y)); in casinh() 303 return (CMPLX(nan_mix(x, y), nan_mix(x, y))); in casinh() 312 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y))); in casinh() 330 return (CMPLX(copysign(rx, x), copysign(ry, y))); in casinh() 340 double complex w = casinh(CMPLX(cimag(z), creal(z))); in casin() 342 return (CMPLX(cimag(w), creal(w))); in casin() 375 return (CMPLX(y + y, -INFINITY)); in cacos() 378 return (CMPLX(x + x, -y)); in cacos() [all …]
|
D | s_clog.c | 72 return (CMPLX(log(hypot(x, y)), v)); in clog() 77 return (CMPLX((ay / 2) * ay, v)); in clog() 78 return (CMPLX(log1p(ay * ay) / 2, v)); in clog() 83 return (CMPLX(log(ax), v)); in clog() 87 return (CMPLX(log(hypot(x * 0x1p-1022, y * 0x1p-1022)) + in clog() 90 return (CMPLX(log(hypot(x, y)), v)); in clog() 94 return (CMPLX(log(hypot(x * 0x1p1023, y * 0x1p1023)) + in clog() 99 return (CMPLX(log(hypot(x, y)), v)); in clog() 141 return (CMPLX(log(ay2l + ax2l + sl + sh) / 2, v)); in clog() 150 return (CMPLX(log1p(ay2l + t + sh) / 2, v)); in clog()
|
D | s_ctanh.c | 107 return (CMPLX(nan_mix(x, y), in ctanh() 110 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh() 120 return (CMPLX(x ? y - y : x, y - y)); in ctanh() 129 return (CMPLX(copysign(1, x), in ctanh() 139 return (CMPLX((beta * rho * s) / denom, t / denom)); in ctanh() 147 z = ctanh(CMPLX(cimag(z), creal(z))); in ctan() 148 return (CMPLX(cimag(z), creal(z))); in ctan()
|
D | s_csqrt.c | 52 return (CMPLX(0, b)); in csqrt() 54 return (CMPLX(INFINITY, b)); in csqrt() 57 return (CMPLX(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrt() 67 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt() 69 return (CMPLX(a, copysign(b - b, b))); in csqrt() 73 return (CMPLX(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrt() 110 return (CMPLX(rx, ry)); in csqrt()
|
D | s_cexp.c | 56 return (CMPLX(exp(x), y)); in cexp() 61 return (CMPLX(c, s)); in cexp() 67 return (CMPLX(y - y, y - y)); in cexp() 70 return (CMPLX(0.0, 0.0)); in cexp() 73 return (CMPLX(x, y - y)); in cexp() 93 return (CMPLX(exp_x * c, exp_x * s)); in cexp()
|
D | s_cpow.c | 64 return (CMPLX(0.0, 0.0)); in cpow() 73 w = CMPLX(r * cos (theta), r * sin (theta)); in cpow()
|
D | s_conj.c | 39 return (CMPLX(creal(z), -cimag(z))); in conj()
|
D | s_cproj.c | 45 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
|
D | k_exp.c | 109 return (CMPLX(c * exp_x * scale1 * scale2, in __ldexp_cexp()
|
D | math_private.h | 555 #ifndef CMPLX 557 CMPLX(double x, double y) in CMPLX() function
|
/bionic/libc/include/ |
D | complex.h | 47 #define CMPLX(x, y) ((double complex){ x, y }) macro
|