Home
last modified time | relevance | path

Searched refs:CMPLX (Results 1 – 13 of 13) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_csinh.c69 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 …]
Ds_ccosh.c69 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 …]
Dcatrig.c291 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 …]
Ds_clog.c72 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()
Ds_ctanh.c107 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()
Ds_csqrt.c52 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()
Ds_cexp.c56 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()
Ds_cpow.c64 return (CMPLX(0.0, 0.0)); in cpow()
73 w = CMPLX(r * cos (theta), r * sin (theta)); in cpow()
Ds_conj.c39 return (CMPLX(creal(z), -cimag(z))); in conj()
Ds_cproj.c45 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
Dk_exp.c109 return (CMPLX(c * exp_x * scale1 * scale2, in __ldexp_cexp()
Dmath_private.h555 #ifndef CMPLX
557 CMPLX(double x, double y) in CMPLX() function
/bionic/libc/include/
Dcomplex.h47 #define CMPLX(x, y) ((double complex){ x, y }) macro