Home
last modified time | relevance | path

Searched refs:complex_t (Results 1 – 21 of 21) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/root/
H A Dcomplex_t.h18 struct complex_t struct
23 complex_t(real_t re) : re(re), im(CTFloat::zero) {} in complex_t() argument
24 complex_t(real_t re, real_t im) : re(re), im(im) {} in complex_t() function
26 complex_t operator + (complex_t y) { return complex_t(re + y.re, im + y.im); }
27 complex_t operator - (complex_t y) { return complex_t(re - y.re, im - y.im); }
28 complex_t operator - () { return complex_t(-re, -im); }
29complex_t operator * (complex_t y) { return complex_t(re * y.re - im * y.im, im * y.re + re * y.im…
31 complex_t operator / (complex_t y)
37 return complex_t((re * r + im) / den, argument
44 return complex_t((re + r * im) / den, argument
[all …]
H A Dcomplex.d18 extern (C++) struct complex_t struct
38 extern (D) complex_t opBinary(string op)(complex_t y) argument
41 return complex_t(re + y.re, im + y.im);
44 extern (D) complex_t opBinary(string op)(complex_t y)
47 return complex_t(re - y.re, im - y.im);
50 extern (D) complex_t opUnary(string op)()
53 return complex_t(-re, -im);
56 extern (D) complex_t opBinary(string op)(complex_t y)
59 return complex_t(re * y.re - im * y.im, im * y.re + re * y.im);
62 extern (D) complex_t opBinaryRight(string op)(real_t x)
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dcomplex_t.h18 struct complex_t struct
23 complex_t(real_t re) : re(re), im(ldouble(0)) {} in complex_t() argument
24 complex_t(real_t re, real_t im) : re(re), im(im) {} in complex_t() argument
26 complex_t operator + (complex_t y) { return complex_t(re + y.re, im + y.im); }
27 complex_t operator - (complex_t y) { return complex_t(re - y.re, im - y.im); }
28 complex_t operator - () { return complex_t(-re, -im); }
29complex_t operator * (complex_t y) { return complex_t(re * y.re - im * y.im, im * y.re + re * y.im…
31 complex_t operator / (complex_t y)
37 return complex_t((re * r + im) / den, argument
44 return complex_t((re + r * im) / den, argument
[all …]
H A Dconstfold.c139 complex_t c1 = complex_t(CTFloat::zero); in Add()
143 complex_t c2 = complex_t(CTFloat::zero); in Add()
147 complex_t v = complex_t(CTFloat::zero); in Add()
184 v = complex_t(r1 + r2); in Add()
187 v = complex_t(r1, i2); in Add()
190 v = complex_t(r1 + creall(c2), cimagl(c2)); in Add()
193 v = complex_t(r2, i1); in Add()
196 v = complex_t(CTFloat::zero, i1 + i2); in Add()
199 v = complex_t(creall(c2), i1 + cimagl(c2)); in Add()
202 v = complex_t(creall(c1) + r2, cimagl(c2)); in Add()
[all …]
H A Dexpression.h158 virtual complex_t toComplex();
236 complex_t toComplex();
267 complex_t toComplex();
275 complex_t value;
277 ComplexExp(Loc loc, complex_t value, Type *type);
278 static ComplexExp *create(Loc loc, complex_t value, Type *type);
284 complex_t toComplex();
H A Dexpression.c2172 complex_t Expression::toComplex() in toComplex()
2175 return complex_t(CTFloat::zero); in toComplex()
2961 complex_t IntegerExp::toComplex() in toComplex()
2963 return (complex_t)toReal(); in toComplex()
3034 complex_t RealExp::toComplex() in toComplex()
3036 return complex_t(toReal(), toImaginary()); in toComplex()
3074 ComplexExp::ComplexExp(Loc loc, complex_t value, Type *type) in ComplexExp()
3081 ComplexExp *ComplexExp::create(Loc loc, complex_t value, Type *type) in create()
3106 complex_t ComplexExp::toComplex() in toComplex()
H A Dctfeexpr.c1420 complex_t v1 = e1->toComplex(); in ctfeIdentity()
1421 complex_t v2 = e2->toComplex(); in ctfeIdentity()
H A Dmtype.c3413 complex_t cvalue = complex_t(fvalue, fvalue); in getProperty()
3526complex_t cvalue = complex_t(Target::RealProperties::snan, Target::RealProperties::snan); in defaultInit()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dconstfold.d149 auto c1 = complex_t(CTFloat.zero); in Add()
152 auto c2 = complex_t(CTFloat.zero); in Add()
155 auto v = complex_t(CTFloat.zero); in Add()
189 v = complex_t(r1 + r2); in Add()
192 v = complex_t(r1, i2); in Add()
195 v = complex_t(r1 + creall(c2), cimagl(c2)); in Add()
198 v = complex_t(r2, i1); in Add()
201 v = complex_t(CTFloat.zero, i1 + i2); in Add()
204 v = complex_t(creall(c2), i1 + cimagl(c2)); in Add()
207 v = complex_t(creall(c1) + r2, cimagl(c2)); in Add()
[all …]
H A Dexpression.h104 virtual complex_t toComplex();
255 complex_t toComplex();
286 complex_t toComplex();
294 complex_t value;
296 static ComplexExp *create(const Loc &loc, complex_t value, Type *type);
297 static void emplace(UnionExp *pue, const Loc &loc, complex_t value, Type *type);
303 complex_t toComplex();
H A Dexpression.d961 complex_t toComplex() in toComplex()
964 return complex_t(CTFloat.zero); in toComplex()
1849 override complex_t toComplex() in toComplex()
1851 return complex_t(toReal()); in toComplex()
2122 override complex_t toComplex() in toComplex()
2124 return complex_t(toReal(), toImaginary()); in toComplex()
2143 complex_t value;
2145 extern (D) this(const ref Loc loc, complex_t value, Type type) in this()
2153 static ComplexExp create(const ref Loc loc, complex_t value, Type type) in create()
2159 static void emplace(UnionExp* pue, const ref Loc loc, complex_t value, Type type) in emplace()
[all …]
H A Dctfeexpr.d1407 complex_t v1 = e1.toComplex(); in ctfeIdentity()
1408 complex_t v2 = e2.toComplex(); in ctfeIdentity()
H A Dtypesem.d2494 return new ComplexExp(loc, complex_t(r, r), mt); in getProperty()
4692 const cvalue = isCfile ? complex_t(CTFloat.zero, CTFloat.zero) in visitBasic()
4693 … : complex_t(target.RealProperties.nan, target.RealProperties.nan); in visitBasic()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/
H A Dd-builtins.cc367 complex_t value = complex_t (ldouble (re), ldouble (im)); in d_eval_constant_expression()
H A DChangeLog-2006419 * d-gcc-complex_t.h: update
425 * dmd/arraytypes.h, dmd/cast.c, dmd/class.c, dmd/complex_t.h,
511 * d-gcc-complex_t.h: updated
516 dmd/complex_t.h, dmd/cond.h, dmd/declaration.h, dmd/declaration.c,
H A DChangeLog-2013366 * complex_t.h: Move into dfrontend.
558 * d-gcc-complex_t.h: Rename to complex_t.h.
H A DChangeLog-20101046 dmd2/bit.c, dmd2/complex_t.h, dmd2/e2ir.c, dmd2/lib.h,
1209 * d/Make-lang.in, dmd/array.c, dmd/bit.c, dmd/complex_t.h,
H A DChangeLog-2007599 dmd/attrib.h, dmd/bit.c, dmd/cast.c, dmd/class.c, dmd/complex_t.h,
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/
H A Dd-builtins.cc354 complex_t value = complex_t (ldouble (re), ldouble (im)); in d_eval_constant_expression()
/netbsd-src/external/gpl3/gcc.old/dist/
H A DMD5SUMS4828 b3601d5b994054853b715fff03bad6ce gcc/d/dmd/complex_t.h
/netbsd-src/external/gpl3/gcc/dist/
H A DMD5SUMS5349 5404266db839312d981463ac4dc6351c gcc/d/dmd/root/complex_t.h