Home
last modified time | relevance | path

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

12

/third_party/musl/src/complex/
Dcsinh.c58 return CMPLX(sinh(x), y); in csinh()
60 return CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)); in csinh()
66 return CMPLX(copysign(h, x) * cos(y), h * sin(y)); in csinh()
69 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in csinh()
70 return CMPLX(creal(z) * copysign(1, x), cimag(z)); in csinh()
74 return CMPLX(h * cos(y), h * h * sin(y)); in csinh()
88 return CMPLX(copysign(0, x * (y - y)), y - y); in csinh()
97 return CMPLX(x, y); in csinh()
98 return CMPLX(x, copysign(0, y)); in csinh()
110 return CMPLX(y - y, x * (y - y)); in csinh()
[all …]
Dccosh.c58 return CMPLX(cosh(x), x * y); in ccosh()
60 return CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)); in ccosh()
66 return CMPLX(h * cos(y), copysign(h, x) * sin(y)); in ccosh()
69 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in ccosh()
70 return CMPLX(creal(z), cimag(z) * copysign(1, x)); in ccosh()
74 return CMPLX(h * h * cos(y), h * sin(y)); in ccosh()
88 return CMPLX(y - y, copysign(0, x * (y - y))); in ccosh()
98 return CMPLX(x * x, copysign(0, x) * y); in ccosh()
99 return CMPLX(x * x, copysign(0, (x + x) * y)); in ccosh()
111 return CMPLX(y - y, x * (y - y)); in ccosh()
[all …]
Dcsqrt.c54 return CMPLX(0, b); in csqrt()
56 return CMPLX(INFINITY, b); in csqrt()
59 return CMPLX(a, t); /* return NaN + NaN i */ in csqrt()
69 return CMPLX(fabs(b - b), copysign(a, b)); in csqrt()
71 return CMPLX(a, copysign(b - b, b)); in csqrt()
90 result = CMPLX(t, b / (2 * t)); in csqrt()
93 result = CMPLX(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
Dcexp.c47 return CMPLX(exp(x), y); in cexp()
51 return CMPLX(cos(y), sin(y)); in cexp()
56 return CMPLX(y - y, y - y); in cexp()
59 return CMPLX(0.0, 0.0); in cexp()
62 return CMPLX(x, y - y); in cexp()
81 return CMPLX(exp_x * cos(y), exp_x * sin(y)); in cexp()
Dctanh.c98 return CMPLX(x, (y == 0 ? y : x * y)); in ctanh()
100 return CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y))); in ctanh()
110 return CMPLX(x ? y - y : x, y - y); in ctanh()
119 return CMPLX(copysign(1, x), 4 * sin(y) * cos(y) * exp_mx * exp_mx); in ctanh()
128 return CMPLX((beta * rho * s) / denom, t / denom); in ctanh()
Dcasin.c14 w = CMPLX(1.0 - (x - y)*(x + y), -2.0*x*y); in casin()
15 double complex r = clog(CMPLX(-y, x) + csqrt(w)); in casin()
16 return CMPLX(cimag(r), -creal(r)); in casin()
Dctan.c7 z = ctanh(CMPLX(-cimag(z), creal(z))); in ctan()
8 return CMPLX(cimag(z), -creal(z)); in ctan()
Dcsin.c7 z = csinh(CMPLX(-cimag(z), creal(z))); in csin()
8 return CMPLX(cimag(z), -creal(z)); in csin()
Dcasinh.c7 z = casin(CMPLX(-cimag(z), creal(z))); in casinh()
8 return CMPLX(cimag(z), -creal(z)); in casinh()
Dcatanh.c7 z = catan(CMPLX(-cimag(z), creal(z))); in catanh()
8 return CMPLX(cimag(z), -creal(z)); in catanh()
Dcacosh.c10 if (zineg) return CMPLX(cimag(z), -creal(z)); in cacosh()
11 else return CMPLX(-cimag(z), creal(z)); in cacosh()
Dconj.c5 return CMPLX(creal(z), -cimag(z)); in conj()
Dccos.c7 return ccosh(CMPLX(-cimag(z), creal(z))); in ccos()
Dcacos.c10 return CMPLX(M_PI_2 - creal(z), -cimag(z)); in cacos()
Dcproj.c6 return CMPLX(INFINITY, copysign(0.0, cimag(z))); in cproj()
Dclog.c13 return CMPLX(log(r), phi); in clog()
D__cexp.c86 return CMPLX(cos(y) * exp_x * scale1 * scale2, sin(y) * exp_x * scale1 * scale2); in __ldexp_cexp()
Dcatan.c105 w = CMPLX(w, 0.25 * log(a)); in catan()
/third_party/musl/src/internal/
Dcomplex_impl.h8 #undef CMPLX
15 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/musl/include/
Dcomplex.h125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/musl/porting/liteos_m/kernel/include/
Dcomplex.h125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/musl/porting/uniproton/kernel/include/
Dcomplex.h125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/musl/porting/liteos_a/kernel/include/
Dcomplex.h125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/FreeBSD/lib/msun/src/
Dmath_private.h560 #ifndef CMPLX
562 CMPLX(double x, double y) in CMPLX() function
/third_party/lzma/CPP/7zip/UI/Common/
DBench.cpp2612 #define CMPLX(x) ((x) * 1000)
2614 #define CMPLX(x) (x)
2665 { 2, 0, CMPLX(8), 0, CMPLX(1), "AES256CBC:2" },
2673 { 1, 0, CMPLX(8), 0, CMPLX(1), "AES256CBC:3" }
2703 { 2, CMPLX((32 * 4 + 1) * 4 + 4), 0x7913ba03, "SHA256:2" },
2706 { 2, CMPLX((20 * 6 + 1) * 4 + 4), 0xff769021, "SHA1:2" },

12