Home
last modified time | relevance | path

Searched refs:toReal (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dconstfold.c79 new(&ue) RealExp(loc, -e1->toReal(), type); in Neg()
129 new(&ue) RealExp(loc, e1->toReal() + e2->toReal(), type); in Add()
152 r1 = e1->toReal(); in Add()
168 r2 = e2->toReal(); in Add()
239 new(&ue) RealExp(loc, e1->toReal() - e2->toReal(), type); in Min()
262 r1 = e1->toReal(); in Min()
278 r2 = e2->toReal(); in Min()
349 r = e1->toReal(); in Mul()
361 r = e2->toReal(); in Mul()
405 new(&ue) RealExp(loc, e1->toReal() / e2->toReal(), type); in Div()
[all …]
H A Doptimize.c830 (e->e1->op == TOKfloat64 && e->e1->toReal() == CTFloat::one)) in Expression_optimize()
849 (e->e2->op == TOKfloat64 && e->e2->toReal() == CTFloat::zero)) in Expression_optimize()
863 (e->e2->op == TOKfloat64 && e->e2->toReal() == CTFloat::one)) in Expression_optimize()
870 if ((e->e2->op == TOKfloat64 && e->e2->toReal() == CTFloat::minusone)) in Expression_optimize()
886 … if (e->e2->op == TOKfloat64 && (e->e2->toReal() == ldouble((sinteger_t)e->e2->toReal()))) in Expression_optimize()
H A Dctfeexpr.c1286 r1 = e1->toReal(); in ctfeRawCmp()
1287 r2 = e2->toReal(); in ctfeRawCmp()
1415 cmp = RealEquals(e1->toReal(), e2->toReal()); in ctfeIdentity()
1442 return realCmp(op, e1->toReal(), e2->toReal()); in ctfeCmp()
H A Dexpression.h156 virtual real_t toReal();
234 real_t toReal();
265 real_t toReal();
282 real_t toReal();
H A Dexpression.c2160 real_t Expression::toReal() in toReal() function
2946 real_t IntegerExp::toReal() in toReal() function
2963 return (complex_t)toReal(); in toComplex()
3016 return (sinteger_t) toReal(); in toInteger()
3021 return (uinteger_t) toReal(); in toUInteger()
3024 real_t RealExp::toReal() in toReal() function
3036 return complex_t(toReal(), toImaginary()); in toComplex()
3088 return (sinteger_t) toReal(); in toInteger()
3093 return (uinteger_t) toReal(); in toUInteger()
3096 real_t ComplexExp::toReal() in toReal() function
H A Ddmangle.c688 realToMangleBuffer(e->toReal()); in visit()
H A Dexpressionsem.c7139 …else if (exp->e2->op == TOKfloat64 && (exp->e2->toReal() == ldouble((sinteger_t)exp->e2->toReal())… in visit()
7140 intpow = (sinteger_t)(exp->e2->toReal()); in visit()
7180 if (exp->e2->op == TOKfloat64 && exp->e2->toReal() == CTFloat::half) in visit()
H A Ddtemplate.c407 return mixHash(CTFloat::hash(ce->toReal()), CTFloat::hash(ce->toImaginary())); in expressionHash()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dconstfold.d94 emplaceExp!(RealExp)(&ue, loc, -e1.toReal(), type); in Neg()
139 emplaceExp!(RealExp)(&ue, loc, e1.toReal() + e2.toReal(), type); in Add()
159 r1 = e1.toReal(); in Add()
174 r2 = e2.toReal(); in Add()
240 emplaceExp!(RealExp)(&ue, loc, e1.toReal() - e2.toReal(), type); in Min()
260 r1 = e1.toReal(); in Min()
275 r2 = e2.toReal(); in Min()
342 r = e1.toReal(); in Mul()
354 r = e2.toReal(); in Mul()
392 emplaceExp!(RealExp)(&ue, loc, e1.toReal() / e2.toReal(), type); in Div()
[all …]
H A Dexpression.h102 virtual real_t toReal();
253 real_t toReal();
284 real_t toReal();
301 real_t toReal();
H A Dctfeexpr.d1269 real_t r1 = e1.type.isreal() ? e1.toReal() : e1.toImaginary();
1270 real_t r2 = e1.type.isreal() ? e2.toReal() : e2.toImaginary();
1402 cmp = CTFloat.isIdentical(e1.toReal(), e2.toReal()); in ctfeIdentity()
1429 return realCmp(op, e1.toReal(), e2.toReal()); in ctfeCmp()
H A Ddstruct.d594 return (exp.toReal() is CTFloat.zero) && in _isZeroInit()
H A Dexpression.d949 real_t toReal() in toReal() function
1833 override real_t toReal() in toReal() function
1851 return complex_t(toReal()); in toComplex()
2104 return cast(sinteger_t)toReal(); in toInteger()
2109 return cast(uinteger_t)toReal(); in toUInteger()
2112 override real_t toReal() in toReal() function
2124 return complex_t(toReal(), toImaginary()); in toComplex()
2180 return cast(sinteger_t)toReal(); in toInteger()
2185 return cast(uinteger_t)toReal(); in toUInteger()
2188 override real_t toReal() in toReal() function
H A Doptimize.d1035 if (e.e2.op == EXP.float64 && e.e2.toReal() == real_t(cast(sinteger_t)e.e2.toReal())) in Expression_optimize()
H A Ddmangle.d864 realToMangleBuffer(buf, e.toReal()); in visit()
H A Ddtemplate.d432 return mixHash(CTFloat.hash(ce.toReal), CTFloat.hash(ce.toImaginary)); in expressionHash()
H A Dexpressionsem.d11013 if (exp.e2.op == EXP.float64 && exp.e2.toReal() == CTFloat.half) in visit()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/
H A Dd-compiler.cc52 cst = build_float_cst (expr->toReal (), expr->type); in paintAsType()
71 tree value = build_float_cst (e->toReal (), e->type); in paintAsType()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/
H A Dd-frontend.cc460 cst = build_float_cst (expr->toReal (), expr->type); in paintAsType()
479 tree value = build_float_cst (e->toReal (), e->type); in paintAsType()