| /third_party/ulib/musl/third_party/complex/ |
| A D | csinh.c | 57 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 D | ccosh.c | 57 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 D | csqrt.c | 53 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 D | cexp.c | 45 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 D | ctanh.c | 97 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.c | 84 return CMPLX(cos(y) * exp_x * scale1 * scale2, sin(y) * exp_x * scale1 * scale2); in __ldexp_cexp()
|
| /third_party/ulib/musl/src/complex/ |
| A D | casinh.c | 6 z = casin(CMPLX(-cimag(z), creal(z))); in casinh() 7 return CMPLX(cimag(z), -creal(z)); in casinh()
|
| A D | catanh.c | 6 z = catan(CMPLX(-cimag(z), creal(z))); in catanh() 7 return CMPLX(cimag(z), -creal(z)); in catanh()
|
| A D | csin.c | 6 z = csinh(CMPLX(-cimag(z), creal(z))); in csin() 7 return CMPLX(cimag(z), -creal(z)); in csin()
|
| A D | ctan.c | 6 z = ctanh(CMPLX(-cimag(z), creal(z))); in ctan() 7 return CMPLX(cimag(z), -creal(z)); in ctan()
|
| A D | casin.c | 13 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 D | conj.c | 4 return CMPLX(creal(z), -cimag(z)); in conj()
|
| A D | ccos.c | 6 return ccosh(CMPLX(-cimag(z), creal(z))); in ccos()
|
| A D | cacosh.c | 7 return CMPLX(-cimag(z), creal(z)); in cacosh()
|
| A D | cacos.c | 10 return CMPLX(M_PI_2 - creal(z), -cimag(z)); in cacos()
|
| A D | clog.c | 12 return CMPLX(log(r), phi); in clog()
|
| A D | cproj.c | 5 return CMPLX(INFINITY, copysign(0.0, creal(z))); in cproj()
|
| /third_party/ulib/musl/third_party/include/ |
| A D | libm.h | 182 #undef CMPLX 193 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
| /third_party/ulib/musl/include/ |
| A D | complex.h | 128 #define CMPLX(x, y) __CMPLX(x, y, double) macro
|
| /third_party/ulib/musl/ |
| A D | WHATSNEW | 793 - C11 CMPLX macro in complex.h
|