| /freebsd-13.1/lib/msun/src/ |
| H A D | s_csinh.c | 69 return (CMPLX(sinh(x), y)); in csinh() 80 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); 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() 134 return (CMPLX(x * cos(y), INFINITY * sin(y))); in csinh() 148 return (CMPLX(((long double)x + x) * (y - y), in csinh() 157 z = csinh(CMPLX(cimag(z), creal(z))); in csin() [all …]
|
| H A D | s_ccosh.c | 69 return (CMPLX(cosh(x), x * y)); in ccosh() 71 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y))); in ccosh() 80 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); 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() 135 return (CMPLX(INFINITY * cos(y), x * sin(y))); in ccosh() 149 return (CMPLX(((long double)x * x) * (y - y), in ccosh() [all …]
|
| H A D | catrig.c | 291 return (CMPLX(x, y + y)); in casinh() 294 return (CMPLX(y, x + x)); in casinh() 297 return (CMPLX(x + x, y)); in casinh() 378 return (CMPLX(x + x, -y)); in cacos() 397 return (CMPLX(rx, ry)); in cacos() 402 return (CMPLX(0, -y)); in cacos() 424 return (CMPLX(rx, ry)); in cacos() 442 return (CMPLX(ry, rx)); in cacosh() 449 return (CMPLX(ry, ry)); in cacosh() 585 return (CMPLX(atanh(x), y)); in catanh() [all …]
|
| H A D | s_clog.c | 72 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()
|
| H A D | s_ctanh.c | 107 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()
|
| H A D | s_csqrt.c | 52 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()
|
| H A D | s_cexp.c | 56 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()
|
| H A D | s_cpow.c | 64 return (CMPLX(0.0, 0.0)); in cpow() 73 w = CMPLX(r * cos (theta), r * sin (theta)); in cpow()
|
| H A D | s_conj.c | 39 return (CMPLX(creal(z), -cimag(z))); in conj()
|
| H A D | s_cproj.c | 45 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
|
| H A D | k_exp.c | 109 return (CMPLX(c * exp_x * scale1 * scale2, in __ldexp_cexp()
|
| H A D | math_private.h | 555 #ifndef CMPLX 557 CMPLX(double x, double y) in CMPLX() function
|
| /freebsd-13.1/include/ |
| H A D | complex.h | 53 #define CMPLX(x, y) ((double complex){ x, y }) macro 57 #define CMPLX(x, y) __builtin_complex((double)(x), (double)(y)) macro
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Builtins.def | 456 // GCC-compatible C99 CMPLX implementation.
|