/freebsd/lib/msun/src/ |
H A D | s_csinh.c | 66 return (CMPLX(sinh(x), y)); in csinh() 68 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y))); in csinh() 74 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh() 77 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in csinh() 78 return (CMPLX(creal(z) * copysign(1, x), cimag(z))); in csinh() 82 return (CMPLX(h * cos(y), h * h * sin(y))); in csinh() 96 return (CMPLX(x, y - y)); in csinh() 104 return (CMPLX(x + x, y)); in csinh() 115 return (CMPLX(y - y, y - y)); in csinh() 130 return (CMPLX(x, y - y)); in csinh() [all …]
|
H A D | catrig.c | 288 return (CMPLX(x, y + y)); in casinh() 291 return (CMPLX(y, x + x)); in casinh() 294 return (CMPLX(x + x, y)); in casinh() 300 return (CMPLX(nan_mix(x, y), nan_mix(x, y))); in casinh() 309 return (CMPLX(copysign(creal(w), x), copysign(cimag(w), y))); in casinh() 327 return (CMPLX(copysign(rx, x), copysign(ry, y))); in casinh() 337 double complex w = casinh(CMPLX(cimag(z), creal(z))); in casin() 339 return (CMPLX(cimag(w), creal(w))); in casin() 372 return (CMPLX(y + y, -INFINITY)); in cacos() 375 return (CMPLX(x + x, -y)); in cacos() [all …]
|
H A D | s_ccosh.c | 66 return (CMPLX(cosh(x), x * y)); in ccosh() 68 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y))); in ccosh() 74 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh() 77 z = __ldexp_cexp(CMPLX(fabs(x), y), -1); in ccosh() 78 return (CMPLX(creal(z), cimag(z) * copysign(1, x))); in ccosh() 82 return (CMPLX(h * h * cos(y), h * sin(y))); in ccosh() 97 return (CMPLX(y - y, x * copysign(0, y))); in ccosh() 107 return (CMPLX(x * x, copysign(0, x) * y)); in ccosh() 118 return (CMPLX(y - y, x * (y - y))); in ccosh() 131 return (CMPLX(INFINITY, x * (y - y))); in ccosh() [all …]
|
H A D | s_clog.c | 69 return (CMPLX(log(hypot(x, y)), v)); in clog() 74 return (CMPLX((ay / 2) * ay, v)); in clog() 75 return (CMPLX(log1p(ay * ay) / 2, v)); in clog() 80 return (CMPLX(log(ax), v)); in clog() 84 return (CMPLX(log(hypot(x * 0x1p-1022, y * 0x1p-1022)) + in clog() 87 return (CMPLX(log(hypot(x, y)), v)); in clog() 91 return (CMPLX(log(hypot(x * 0x1p1023, y * 0x1p1023)) + in clog() 96 return (CMPLX(log(hypot(x, y)), v)); in clog() 138 return (CMPLX(log(ay2l + ax2l + sl + sh) / 2, v)); in clog() 147 return (CMPLX(log1p(ay2l + t + sh) / 2, v)); in clog()
|
H A D | s_ctanh.c | 104 return (CMPLX(nan_mix(x, y), in ctanh() 107 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh() 117 return (CMPLX(x ? y - y : x, y - y)); in ctanh() 126 return (CMPLX(copysign(1, x), in ctanh() 136 return (CMPLX((beta * rho * s) / denom, t / denom)); in ctanh() 144 z = ctanh(CMPLX(cimag(z), creal(z))); in ctan() 145 return (CMPLX(cimag(z), creal(z))); in ctan()
|
H A D | s_csqrt.c | 49 return (CMPLX(0, b)); in csqrt() 51 return (CMPLX(INFINITY, b)); in csqrt() 54 return (CMPLX(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrt() 64 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt() 66 return (CMPLX(a, copysign(b - b, b))); in csqrt() 70 return (CMPLX(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrt() 107 return (CMPLX(rx, ry)); in csqrt()
|
H A D | s_cexp.c | 53 return (CMPLX(exp(x), y)); in cexp() 58 return (CMPLX(c, s)); in cexp() 64 return (CMPLX(y - y, y - y)); in cexp() 67 return (CMPLX(0.0, 0.0)); in cexp() 70 return (CMPLX(x, y - y)); in cexp() 90 return (CMPLX(exp_x * c, exp_x * s)); in cexp()
|
H A D | s_cpow.c | 61 return (CMPLX(0.0, 0.0)); in cpow() 70 w = CMPLX(r * cos (theta), r * sin (theta)); in cpow()
|
H A D | s_conj.c | 37 return (CMPLX(creal(z), -cimag(z))); in conj()
|
H A D | s_cproj.c | 42 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
|
H A D | k_exp.c | 106 return (CMPLX(c * exp_x * scale1 * scale2, in __ldexp_cexp()
|
H A D | math_private.h | 553 #ifndef CMPLX 555 CMPLX(double x, double y) in CMPLX() function
|
/freebsd/include/ |
H A D | complex.h | 51 #define CMPLX(x, y) ((double complex){ x, y }) macro 55 #define CMPLX(x, y) __builtin_complex((double)(x), (double)(y)) macro
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/ |
H A D | CSymbolMap.inc | 29 SYMBOL(CMPLX, None, <complex.h>)
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Builtins.td | 525 // GCC-compatible C99 CMPLX implementation.
|