Home
last modified time | relevance | path

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

/third_party/ulib/musl/third_party/complex/
A Dcsinh.c57 return CMPLX(sinh(x), y); in csinh()
59 return CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)); in csinh()
68 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in csinh()
73 return CMPLX(h * cos(y), h * h * sin(y)); in csinh()
87 return CMPLX(copysign(0, x * (y - y)), y - y); in csinh()
96 return CMPLX(x, y); in csinh()
97 return CMPLX(x, copysign(0, y)); in csinh()
109 return CMPLX(y - y, x * (y - y)); in csinh()
124 return CMPLX(x * x, x * (y - y)); in csinh()
125 return CMPLX(x * cos(y), INFINITY * sin(y)); in csinh()
[all …]
A Dccosh.c57 return CMPLX(cosh(x), x * y); in ccosh()
59 return CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)); in ccosh()
68 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in ccosh()
73 return CMPLX(h * h * cos(y), h * sin(y)); in ccosh()
87 return CMPLX(y - y, copysign(0, x * (y - y))); in ccosh()
97 return CMPLX(x * x, copysign(0, x) * y); in ccosh()
98 return CMPLX(x * x, copysign(0, (x + x) * y)); in ccosh()
110 return CMPLX(y - y, x * (y - y)); in ccosh()
123 return CMPLX(x * x, x * (y - y)); in ccosh()
124 return CMPLX((x * x) * cos(y), x * sin(y)); in ccosh()
[all …]
A Dcsqrt.c53 return CMPLX(0, b); in csqrt()
55 return CMPLX(INFINITY, b); in csqrt()
58 return CMPLX(a, t); /* return NaN + NaN i */ in csqrt()
68 return CMPLX(fabs(b - b), copysign(a, b)); in csqrt()
70 return CMPLX(a, copysign(b - b, b)); in csqrt()
89 result = CMPLX(t, b / (2 * t)); in csqrt()
92 result = CMPLX(fabs(b) / (2 * t), copysign(t, b)); in csqrt()
A Dcexp.c45 return CMPLX(exp(x), y); in cexp()
49 return CMPLX(cos(y), sin(y)); in cexp()
54 return CMPLX(y - y, y - y); in cexp()
57 return CMPLX(0.0, 0.0); in cexp()
60 return CMPLX(x, y - y); in cexp()
79 return CMPLX(exp_x * cos(y), exp_x * sin(y)); in cexp()
A Dctanh.c97 return CMPLX(x, (y == 0 ? y : x * y)); in ctanh()
99 return CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y))); in ctanh()
109 return CMPLX(x ? y - y : x, y - y); in ctanh()
118 return CMPLX(copysign(1, x), 4 * sin(y) * cos(y) * exp_zx * exp_zx); in ctanh()
127 return CMPLX((beta * rho * s) / denom, t / denom); in ctanh()
A D__cexp.c84 return CMPLX(cos(y) * exp_x * scale1 * scale2, sin(y) * exp_x * scale1 * scale2); in __ldexp_cexp()
/third_party/ulib/musl/src/complex/
A Dcasinh.c6 z = casin(CMPLX(-cimag(z), creal(z))); in casinh()
7 return CMPLX(cimag(z), -creal(z)); in casinh()
A Dcatanh.c6 z = catan(CMPLX(-cimag(z), creal(z))); in catanh()
7 return CMPLX(cimag(z), -creal(z)); in catanh()
A Dcsin.c6 z = csinh(CMPLX(-cimag(z), creal(z))); in csin()
7 return CMPLX(cimag(z), -creal(z)); in csin()
A Dctan.c6 z = ctanh(CMPLX(-cimag(z), creal(z))); in ctan()
7 return CMPLX(cimag(z), -creal(z)); in ctan()
A Dcasin.c13 w = CMPLX(1.0 - (x - y) * (x + y), -2.0 * x * y); in casin()
14 return clog(CMPLX(-y, x) + csqrt(w)); in casin()
A Dconj.c4 return CMPLX(creal(z), -cimag(z)); in conj()
A Dccos.c6 return ccosh(CMPLX(-cimag(z), creal(z))); in ccos()
A Dcacosh.c7 return CMPLX(-cimag(z), creal(z)); in cacosh()
A Dcacos.c10 return CMPLX(M_PI_2 - creal(z), -cimag(z)); in cacos()
A Dclog.c12 return CMPLX(log(r), phi); in clog()
A Dcproj.c5 return CMPLX(INFINITY, copysign(0.0, creal(z))); in cproj()
/third_party/ulib/musl/third_party/include/
A Dlibm.h182 #undef CMPLX
193 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/ulib/musl/include/
A Dcomplex.h128 #define CMPLX(x, y) __CMPLX(x, y, double) macro
/third_party/ulib/musl/
A DWHATSNEW793 - C11 CMPLX macro in complex.h

Completed in 21 milliseconds