/third_party/musl/src/complex/ |
D | csinh.c | 58 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 …]
|
D | ccosh.c | 58 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 …]
|
D | csqrt.c | 54 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()
|
D | cexp.c | 47 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()
|
D | ctanh.c | 98 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()
|
D | casin.c | 14 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()
|
D | ctan.c | 7 z = ctanh(CMPLX(-cimag(z), creal(z))); in ctan() 8 return CMPLX(cimag(z), -creal(z)); in ctan()
|
D | csin.c | 7 z = csinh(CMPLX(-cimag(z), creal(z))); in csin() 8 return CMPLX(cimag(z), -creal(z)); in csin()
|
D | casinh.c | 7 z = casin(CMPLX(-cimag(z), creal(z))); in casinh() 8 return CMPLX(cimag(z), -creal(z)); in casinh()
|
D | catanh.c | 7 z = catan(CMPLX(-cimag(z), creal(z))); in catanh() 8 return CMPLX(cimag(z), -creal(z)); in catanh()
|
D | cacosh.c | 10 if (zineg) return CMPLX(cimag(z), -creal(z)); in cacosh() 11 else return CMPLX(-cimag(z), creal(z)); in cacosh()
|
D | conj.c | 5 return CMPLX(creal(z), -cimag(z)); in conj()
|
D | ccos.c | 7 return ccosh(CMPLX(-cimag(z), creal(z))); in ccos()
|
D | cacos.c | 10 return CMPLX(M_PI_2 - creal(z), -cimag(z)); in cacos()
|
D | cproj.c | 6 return CMPLX(INFINITY, copysign(0.0, cimag(z))); in cproj()
|
D | clog.c | 13 return CMPLX(log(r), phi); in clog()
|
D | __cexp.c | 86 return CMPLX(cos(y) * exp_x * scale1 * scale2, sin(y) * exp_x * scale1 * scale2); in __ldexp_cexp()
|
D | catan.c | 105 w = CMPLX(w, 0.25 * log(a)); in catan()
|
/third_party/musl/src/internal/ |
D | complex_impl.h | 8 #undef CMPLX 15 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
/third_party/musl/include/ |
D | complex.h | 125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
/third_party/musl/porting/liteos_m/kernel/include/ |
D | complex.h | 125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
/third_party/musl/porting/uniproton/kernel/include/ |
D | complex.h | 125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
/third_party/musl/porting/liteos_a/kernel/include/ |
D | complex.h | 125 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
/third_party/FreeBSD/lib/msun/src/ |
D | math_private.h | 560 #ifndef CMPLX 562 CMPLX(double x, double y) in CMPLX() function
|
/third_party/lzma/CPP/7zip/UI/Common/ |
D | Bench.cpp | 2612 #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" },
|