Home
last modified time | relevance | path

Searched refs:imag (Results 1 – 25 of 42) sorted by relevance

12

/openbsd-src/gnu/llvm/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h35 return hypot(__c.real(), __c.imag()); in abs()
41 return atan2(__c.imag(), __c.real()); in arg()
61 if (std::isinf(__c.imag())) in norm()
62 return abs(__c.imag()); in norm()
63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm()
69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj()
76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj()
77 __r = std::complex<_Tp>(INFINITY, copysign(_Tp(0), __c.imag())); in proj()
122 if (std::isinf(__x.imag())) in sqrt()
123 return std::complex<_Tp>(_Tp(INFINITY), __x.imag()); in sqrt()
[all …]
/openbsd-src/gnu/llvm/libcxx/include/
H A Dcomplex30 T imag() const; // constexpr in C++14
33 void imag(T); // constexpr in C++20
61 constexpr float imag() const;
62 void imag(float); // constexpr in C++20
90 constexpr double imag() const;
91 void imag(double); // constexpr in C++20
119 constexpr long double imag() const;
120 void imag(long double); // constexpr in C++20
173 template<class T> T imag(const complex<T>&); // constexpr in C++14
174 long double imag(long double); // constexpr in C++14
[all …]
/openbsd-src/gnu/lib/libstdc++/libstdc++/include/std/
H A Dstd_complex.h101 _Tp imag() const;
133 complex<_Tp>::imag() const { return _M_imag; } in imag() function
144 : _M_real(__z.real()), _M_imag(__z.imag()) { } in complex()
199 _M_imag = __z.imag();
210 _M_imag += __z.imag();
221 _M_imag -= __z.imag();
232 const _Tp __r = _M_real * __z.real() - _M_imag * __z.imag();
233 _M_imag = _M_real * __z.imag() + _M_imag * __z.real();
245 const _Tp __r = _M_real * __z.real() + _M_imag * __z.imag();
247 _M_imag = (_M_imag * __z.real() - _M_real * __z.imag()) / __n;
[all …]
/openbsd-src/gnu/gcc/libstdc++-v3/include/std/
H A Dstd_complex.h135 _Tp& imag();
137 const _Tp& imag() const;
186 complex<_Tp>::imag() { return _M_imag; } in imag() function
190 complex<_Tp>::imag() const { return _M_imag; } in imag() function
201 : _M_real(__z.real()), _M_imag(__z.imag()) { } in complex()
256 _M_imag = __z.imag();
267 _M_imag += __z.imag();
278 _M_imag -= __z.imag();
289 const _Tp __r = _M_real * __z.real() - _M_imag * __z.imag();
290 _M_imag = _M_real * __z.imag() + _M_imag * __z.real();
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/builtins/ppc/
H A Ddivtc3.c50 DD imag = {.ld = __gcc_qdiv(imagNumerator, denom)}; in __divtc3() local
54 imag.s.hi = __compiler_rt_scalbn(imag.s.hi, -ilogbw); in __divtc3()
55 imag.s.lo = __compiler_rt_scalbn(imag.s.lo, -ilogbw); in __divtc3()
57 if (crt_isnan(real.s.hi) && crt_isnan(imag.s.hi)) { in __divtc3()
65 imag.s.hi = crt_copysign(CRT_INFINITY, cDD.s.hi) * bDD.s.hi; in __divtc3()
66 imag.s.lo = 0.0; in __divtc3()
75 imag.s.hi = CRT_INFINITY * (bDD.s.hi * cDD.s.hi - aDD.s.hi * dDD.s.hi); in __divtc3()
76 imag.s.lo = 0.0; in __divtc3()
86 imag.s.hi = in __divtc3()
88 imag.s.lo = 0.0; in __divtc3()
[all …]
H A Dmultc3.c30 DD imag = {.ld = __gcc_qadd(ad, bc)}; in __multc3() local
32 if (crt_isnan(real.s.hi) && crt_isnan(imag.s.hi)) { in __multc3()
75 imag.s.hi = CRT_INFINITY * (aDD.s.hi * dDD.s.hi + bDD.s.hi * cDD.s.hi); in __multc3()
76 imag.s.lo = 0.0; in __multc3()
82 __imag__ z = imag.ld; in __multc3()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dscoping15.C7 friend double imag(const DComplex& a);
12 friend float imag(const FComplex& a);
18 int imag; in scnrm2() local
19 ::imag( cx[0] ); in scnrm2()
/openbsd-src/gnu/gcc/libstdc++-v3/include/tr1/
H A Dcomplex64 return std::complex<_Tp>(__pi_2 - __t.real(), -__t.imag());
98 std::complex<_Tp> __t(-__z.imag(), __z.real());
100 return std::complex<_Tp>(__t.imag(), -__t.real());
135 const _Tp __x = _Tp(1.0) - __r2 - __z.imag() * __z.imag();
137 _Tp __num = __z.imag() + _Tp(1.0);
138 _Tp __den = __z.imag() - _Tp(1.0);
178 std::complex<_Tp> __t((__z.real() - __z.imag())
179 * (__z.real() + __z.imag()) - _Tp(1.0),
180 _Tp(2.0) * __z.real() * __z.imag());
217 std::complex<_Tp> __t((__z.real() - __z.imag())
[all …]
/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/26_numerics/
H A Dcomplex_value.cc39 d = a.imag(); in test01()
47 double d8 = atan2(c.imag(), c.real()); in test01()
56 complex_type f = polar(c.imag(), 0.0); in test01()
H A Dcomplex_inserters_extractors.cc48 VERIFY( flteq(z.imag(), y) ); in test_good()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dunchanging1.C38 (*o)[i] *= complex<double>((*p)[i].real(), (*p)[i].imag()); in foo()
/openbsd-src/gnu/llvm/clang/lib/Headers/cuda_wrappers/
H A Dcomplex60 // return complex<T>(sin(x.real()) * cosh(x.imag()),
61 // cos(x.real()), sinh(x.imag()));
/openbsd-src/gnu/llvm/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl06.rst549 def mandelconverger(real imag iters creal cimag)
550 if iters > 255 | (real*real + imag*imag > 4) then
553 mandelconverger(real*real - imag*imag + creal,
554 2*real*imag + cimag,
558 def mandelconverge(real imag)
559 mandelconverger(real, imag, 0, real, imag);
/openbsd-src/gnu/gcc/gcc/
H A Dcalls.c3190 tree real, imag, next; in split_complex_values() local
3195 imag = build1 (IMAGPART_EXPR, subtype, complex_value); in split_complex_values()
3199 imag = build_tree_list (NULL_TREE, imag); in split_complex_values()
3200 TREE_CHAIN (p) = imag; in split_complex_values()
3201 TREE_CHAIN (imag) = next; in split_complex_values()
3238 tree next, imag; in split_complex_types() local
3245 imag = build_tree_list (NULL_TREE, TREE_VALUE (p)); in split_complex_types()
3246 TREE_CHAIN (p) = imag; in split_complex_types()
3247 TREE_CHAIN (imag) = next; in split_complex_types()
H A Dfunction.c2917 rtx tmp, real, imag; in assign_parms_unsplit_complex() local
2921 imag = DECL_RTL (TREE_CHAIN (fnargs)); in assign_parms_unsplit_complex()
2925 imag = gen_lowpart_SUBREG (inner, imag); in assign_parms_unsplit_complex()
2942 emit_move_insn (imem, imag); in assign_parms_unsplit_complex()
2947 tmp = gen_rtx_CONCAT (DECL_MODE (parm), real, imag); in assign_parms_unsplit_complex()
2951 imag = DECL_INCOMING_RTL (TREE_CHAIN (fnargs)); in assign_parms_unsplit_complex()
2955 imag = gen_lowpart_SUBREG (inner, imag); in assign_parms_unsplit_complex()
2957 tmp = gen_rtx_CONCAT (DECL_MODE (parm), real, imag); in assign_parms_unsplit_complex()
H A Dtree-complex.c112 tree real, imag; in find_lattice_value() local
124 imag = TREE_IMAGPART (t); in find_lattice_value()
129 imag = TREE_OPERAND (t, 1); in find_lattice_value()
137 i = some_nonzerop (imag); in find_lattice_value()
H A Dtree-browser.def78 DEFTBCODE (TB_IMAG, "imag", "Field accessor.")
H A Dtree.c1154 build_complex (tree type, tree real, tree imag) in build_complex() argument
1159 TREE_IMAGPART (t) = imag; in build_complex()
1161 TREE_OVERFLOW (t) = TREE_OVERFLOW (real) | TREE_OVERFLOW (imag); in build_complex()
1163 = TREE_CONSTANT_OVERFLOW (real) | TREE_CONSTANT_OVERFLOW (imag); in build_complex()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DPropertiesBase.td300 def : Property<"imag", APSInt> {
303 def : Creator<[{ return APValue(real, imag); }]>;
318 def : Property<"imag", APInt> {
325 llvm::APFloat(sema, imag));
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dtree.c553 build_complex (type, real, imag) in build_complex() argument
555 tree real, imag;
560 TREE_IMAGPART (t) = imag;
562 TREE_OVERFLOW (t) = TREE_OVERFLOW (real) | TREE_OVERFLOW (imag);
564 = TREE_CONSTANT_OVERFLOW (real) | TREE_CONSTANT_OVERFLOW (imag);
H A Doptabs.c2857 rtx real, imag, total; local
2860 imag = gen_imagpart (submode, op0);
2864 imag = expand_mult (submode, imag, imag, NULL_RTX, 0);
2867 total = expand_binop (submode, add_optab, real, imag, NULL_RTX,
H A Dtree.h777 #define TREE_IMAGPART(NODE) (COMPLEX_CST_CHECK (NODE)->complex.imag)
784 tree imag; member
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCleanup.cpp99 llvm::Value *imag = in restore() local
101 return RValue::getComplex(real, imag); in restore()
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Dtypeck.c4051 tree real, imag; local
4055 imag = build_unary_op (IMAGPART_EXPR, arg, 1);
4057 build_unary_op (code, real, 1), imag);
/openbsd-src/gnu/gcc/gcc/cp/
H A Dtypeck.c4109 tree real, imag; in build_unary_op() local
4113 imag = build_unary_op (IMAGPART_EXPR, arg, 1); in build_unary_op()
4115 build_unary_op (code, real, 1), imag); in build_unary_op()

12