Home
last modified time | relevance | path

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

/freebsd/lib/msun/src/
H A Ds_csinh.c66 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 Dcatrig.c288 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 Ds_ccosh.c66 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 Ds_clog.c69 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 Ds_ctanh.c104 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 Ds_csqrt.c49 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 Ds_cexp.c53 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 Ds_cpow.c61 return (CMPLX(0.0, 0.0)); in cpow()
70 w = CMPLX(r * cos (theta), r * sin (theta)); in cpow()
H A Ds_conj.c37 return (CMPLX(creal(z), -cimag(z))); in conj()
H A Ds_cproj.c42 return (CMPLX(INFINITY, copysign(0.0, cimag(z)))); in cproj()
H A Dk_exp.c106 return (CMPLX(c * exp_x * scale1 * scale2, in __ldexp_cexp()
H A Dmath_private.h553 #ifndef CMPLX
555 CMPLX(double x, double y) in CMPLX() function
/freebsd/include/
H A Dcomplex.h51 #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 DCSymbolMap.inc29 SYMBOL(CMPLX, None, <complex.h>)
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltins.td525 // GCC-compatible C99 CMPLX implementation.