Home
last modified time | relevance | path

Searched refs:toInteger (Results 1 – 25 of 74) sorted by relevance

123

/netbsd/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dconstfold.c228 new(&ue) IntegerExp(loc, e1->toInteger() + e2->toInteger(), type); in Add()
333 new(&ue) IntegerExp(loc, e1->toInteger() - e2->toInteger(), type); in Min()
385 new(&ue) IntegerExp(loc, e1->toInteger() * e2->toInteger(), type); in Mul()
438 n1 = e1->toInteger(); in Div()
439 n2 = e2->toInteger(); in Div()
517 n1 = e1->toInteger(); in Mod()
640 new(&ue) IntegerExp(loc, e1->toInteger() << e2->toInteger(), type); in Shl()
747 new(&ue) IntegerExp(loc, e1->toInteger() & e2->toInteger(), type); in And()
754 new(&ue) IntegerExp(loc, e1->toInteger() | e2->toInteger(), type); in Or()
761 new(&ue) IntegerExp(loc, e1->toInteger() ^ e2->toInteger(), type); in Xor()
[all …]
H A Dconstfold.d231 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() + e2.toInteger(), type); in Add()
328 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() - e2.toInteger(), type); in Min()
377 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() * e2.toInteger(), type); in Mul()
424 n1 = e1.toInteger(); in Div()
425 n2 = e2.toInteger(); in Div()
489 n1 = e1.toInteger(); in Mod()
605 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() << e2.toInteger(), type); in Shl()
698 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() & e2.toInteger(), type); in And()
705 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() | e2.toInteger(), type); in Or()
713 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() ^ e2.toInteger(), type); in Xor()
[all …]
H A Dctfeexpr.c737 *ofs = ie->e2->toInteger(); in getAggregateFromPointer()
750 *ofs = se->lwr->toInteger(); in getAggregateFromPointer()
767 agg1->toInteger() == agg2->toInteger()) in pointToSameMemoryBlock()
857 dinteger_t ofs2 = e2->toInteger(); in pointerArithmetic()
874 len = dollar->toInteger(); in pointerArithmetic()
1154 sinteger_t c = ee1->toInteger() - ee2->toInteger(); in ctfeCmpArrays()
1280 return e1->toInteger() != e2->toInteger(); in ctfeRawCmp()
1446 return intUnsignedCmp(op, e1->toInteger(), e2->toInteger()); in ctfeCmp()
1448 return intSignedCmp(op, e1->toInteger(), e2->toInteger()); in ctfeCmp()
1475 dinteger_t v = es2e->toInteger(); in ctfeCat()
[all …]
H A Doptimize.c384 sinteger_t index = ae->e2->toInteger(); in Expression_optimize()
390 sinteger_t dim = ts->dim->toInteger(); in Expression_optimize()
679 sinteger_t i2 = e->e2->toInteger(); in Expression_optimize()
764 sinteger_t i2 = e->e2->toInteger(); in Expression_optimize()
829 if ((e->e1->op == TOKint64 && e->e1->toInteger() == 1) || in Expression_optimize()
848 if ((e->e2->op == TOKint64 && e->e2->toInteger() == 0) || in Expression_optimize()
862 if ((e->e2->op == TOKint64 && e->e2->toInteger() == 1) || in Expression_optimize()
900 if (e->e1->op == TOKint64 && e->e1->toInteger() > 0 && in Expression_optimize()
901 !((e->e1->toInteger() - 1) & e->e1->toInteger()) && in Expression_optimize()
904 dinteger_t i = e->e1->toInteger(); in Expression_optimize()
[all …]
H A Dinitsem.c265 const uinteger_t idxvalue = idx->toInteger(); in visit()
271 length = (unsigned)idx->toInteger(); in visit()
317 uinteger_t edim = ((TypeSArray *)t)->dim->toInteger(); in visit()
428 se->numberOfCodeUnits(tynto) < ((TypeSArray *)tb)->dim->toInteger()) in visit()
480 uinteger_t dim1 = ((TypeSArray *)tb)->dim->toInteger(); in visit()
491 dim2 = ((TypeSArray *)tx)->dim->toInteger(); in visit()
768 uinteger_t adim = ((TypeSArray *)t)->dim->toInteger(); in visit()
793 const uinteger_t idxval = init->index[i]->toInteger(); in visit()
812 j = (size_t)(init->index[i])->toInteger(); in visit()
849 size_t dim = ((TypeSArray *)tn)->dim->toInteger(); in visit()
[all …]
H A Dctfeexpr.d741 *ofs = ie.e2.toInteger(); in getAggregateFromPointer()
750 *ofs = se.lwr.toInteger(); in getAggregateFromPointer()
774 if (agg1.op == EXP.int64 && agg2.op == EXP.int64 && agg1.toInteger() == agg2.toInteger()) in pointToSameMemoryBlock()
851 dinteger_t ofs2 = e2.toInteger(); in pointerArithmetic()
866 len = dollar.toInteger(); in pointerArithmetic()
1112 lo1 = sle1.lwr.toInteger(); in ctfeCmpArrays()
1121 lo2 = sle2.lwr.toInteger(); in ctfeCmpArrays()
1145 const sinteger_t c = ee1.toInteger() - ee2.toInteger(); in ctfeCmpArrays()
1265 return e1.toInteger() != e2.toInteger();
1433 return intUnsignedCmp(op, e1.toInteger(), e2.toInteger()); in ctfeCmp()
[all …]
H A Dinitsem.d327 const uinteger_t idxvalue = idx.toInteger(); in initializerSemantic()
376 uinteger_t edim = tsa.dim.toInteger(); in initializerSemantic()
512 tb.isTypeSArray().dim.toInteger() + 1 == typeb.isTypeSArray().dim.toInteger()) in initializerSemantic()
601 uinteger_t dim1 = tba.dim.toInteger(); in initializerSemantic()
610 dim2 = tx.isTypeSArray().dim.toInteger(); in initializerSemantic()
796 const nelems = tnsa ? cast(size_t)tnsa.dim.toInteger() : 0; in initializerSemantic()
877 const uinteger_t edim = tsa.dim.toInteger(); in initializerSemantic()
1163 uinteger_t adim = t.isTypeSArray().dim.toInteger(); in visitArray()
1190 const uinteger_t idxval = e.toInteger(); in visitArray()
1210 j = cast(size_t)e.toInteger(); in visitArray()
[all …]
H A Doptimize.d234 len = tsa.dim.toInteger(); in setLengthVarIfKnown()
256 const len = tsa.dim.toInteger(); in setLengthVarIfKnown()
555 ret = new IntegerExp(e.loc, eint.toInteger() + offset, e.type); in Expression_optimize()
564 sinteger_t index = ae.e2.toInteger(); in Expression_optimize()
569 sinteger_t dim = ts.dim.toInteger(); in Expression_optimize()
599 sinteger_t index = ae.e2.toInteger(); in Expression_optimize()
604 sinteger_t dim = ts.dim.toInteger(); in Expression_optimize()
882 sinteger_t i2 = e.e2.toInteger(); in Expression_optimize()
968 sinteger_t i2 = e.e2.toInteger(); in Expression_optimize()
1038 if (e.e1.type.isfloating() || cast(sinteger_t)e.e2.toInteger() >= 0) in Expression_optimize()
[all …]
H A Ddinterpret.c2006 indx += lwr->toInteger(); in visit()
3032 const sinteger_t i2 = e2->toInteger(); in interpretCommon()
3902 if (oldse->upr->toInteger() < upperbound + oldse->lwr->toInteger()) in interpretAssignToSlice()
3906 oldse->upr->toInteger() - oldse->lwr->toInteger()); in interpretAssignToSlice()
5019 sinteger_t indx = e2->toInteger(); in resolveIndexing()
5114 uinteger_t index = e2->toInteger(); in resolveIndexing()
5129 *pidx = e2->toInteger(); in resolveIndexing()
5275 uinteger_t ilwr = lwr->toInteger(); in visit()
5276 uinteger_t iupr = upr->toInteger(); in visit()
5377 uinteger_t ilwr = lwr->toInteger(); in visit()
[all …]
H A Ddinterpret.d1949 indx += lwr.toInteger(); in visit()
3053 const sinteger_t i2 = e2.toInteger(); in interpretCommon()
5199 sinteger_t indx = e2.toInteger(); in resolveIndexing()
5292 uinteger_t index = e2.toInteger(); in resolveIndexing()
5307 *pidx = e2.toInteger(); in resolveIndexing()
5460 uinteger_t ilwr = lwr.toInteger(); in visit()
5461 uinteger_t iupr = upr.toInteger(); in visit()
5579 uinteger_t ilwr = lwr.toInteger(); in visit()
5580 uinteger_t iupr = upr.toInteger(); in visit()
5596 uinteger_t lo1 = se.lwr.toInteger(); in visit()
[all …]
H A Ddcast.c342 dinteger_t value = e->toInteger(); in implicitConvTo()
551 if (((TypeSArray *)e->type)->dim->toInteger() == in implicitConvTo()
552 ((TypeSArray *)t)->dim->toInteger()) in implicitConvTo()
661 if (e->elements->dim != tsa->dim->toInteger()) in implicitConvTo()
706 const size_t tbasedim = tbase->dim->toInteger(); in implicitConvTo()
1499 dinteger_t dim = ((TypeSArray *)t1b)->dim->toInteger(); in castTo()
1688 se->len = (size_t)((TypeSArray *)tb)->dim->toInteger(); in castTo()
1864 size_t dim2 = (size_t)((TypeSArray *)tb)->dim->toInteger(); in castTo()
2028 if (e->elements->dim != tsa->dim->toInteger()) in castTo()
2066 const size_t tbasedim = tbase->dim->toInteger(); in castTo()
[all …]
H A Ddenum.c348 if (ec->toInteger()) in getMaxMinValue()
699 if (e->toInteger()) in semantic()
728 if (etest->toInteger()) in semantic()
H A Dcond.c104 size_t length = (size_t)el->toInteger(); in lowerArrayAggregate()
344 const dinteger_t lwr = sfe->rangefe->lwr->toInteger(); in lowerNonArrayAggregate()
345 dinteger_t upr = sfe->rangefe->upr->toInteger(); in lowerNonArrayAggregate()
H A Ddcast.d402 immutable dinteger_t value = e.toInteger(); in implicitConvTo()
594 if (e.type.isTypeSArray().dim.toInteger() == t.isTypeSArray().dim.toInteger()) in implicitConvTo()
605 size_t tolen = cast(size_t)t.isTypeSArray().dim.toInteger(); in implicitConvTo()
713 if (e.elements.dim != tsa.dim.toInteger()) in implicitConvTo()
757 const tbasedim = tbase.dim.toInteger(); in implicitConvTo()
1719 const dim = t1b.isTypeSArray().dim.toInteger(); in visit()
1909 se.len = cast(size_t)tb.isTypeSArray().dim.toInteger(); in visitString()
2088 size_t dim2 = cast(size_t)tsa.dim.toInteger(); in visitString()
2273 if (e.elements.dim != tsa.dim.toInteger()) in visitArrayLiteral()
2309 const tbasedim = tbase.dim.toInteger(); in visitArrayLiteral()
[all …]
/netbsd/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dconstfold.c228 new(&ue) IntegerExp(loc, e1->toInteger() + e2->toInteger(), type); in Add()
333 new(&ue) IntegerExp(loc, e1->toInteger() - e2->toInteger(), type); in Min()
385 new(&ue) IntegerExp(loc, e1->toInteger() * e2->toInteger(), type); in Mul()
438 n1 = e1->toInteger(); in Div()
439 n2 = e2->toInteger(); in Div()
517 n1 = e1->toInteger(); in Mod()
640 new(&ue) IntegerExp(loc, e1->toInteger() << e2->toInteger(), type); in Shl()
747 new(&ue) IntegerExp(loc, e1->toInteger() & e2->toInteger(), type); in And()
754 new(&ue) IntegerExp(loc, e1->toInteger() | e2->toInteger(), type); in Or()
761 new(&ue) IntegerExp(loc, e1->toInteger() ^ e2->toInteger(), type); in Xor()
[all …]
H A Dctfeexpr.c737 *ofs = ie->e2->toInteger(); in getAggregateFromPointer()
750 *ofs = se->lwr->toInteger(); in getAggregateFromPointer()
767 agg1->toInteger() == agg2->toInteger()) in pointToSameMemoryBlock()
857 dinteger_t ofs2 = e2->toInteger(); in pointerArithmetic()
874 len = dollar->toInteger(); in pointerArithmetic()
1154 sinteger_t c = ee1->toInteger() - ee2->toInteger(); in ctfeCmpArrays()
1280 return e1->toInteger() != e2->toInteger(); in ctfeRawCmp()
1446 return intUnsignedCmp(op, e1->toInteger(), e2->toInteger()); in ctfeCmp()
1448 return intSignedCmp(op, e1->toInteger(), e2->toInteger()); in ctfeCmp()
1475 dinteger_t v = es2e->toInteger(); in ctfeCat()
[all …]
H A Doptimize.c384 sinteger_t index = ae->e2->toInteger(); in Expression_optimize()
390 sinteger_t dim = ts->dim->toInteger(); in Expression_optimize()
679 sinteger_t i2 = e->e2->toInteger(); in Expression_optimize()
764 sinteger_t i2 = e->e2->toInteger(); in Expression_optimize()
829 if ((e->e1->op == TOKint64 && e->e1->toInteger() == 1) || in Expression_optimize()
848 if ((e->e2->op == TOKint64 && e->e2->toInteger() == 0) || in Expression_optimize()
862 if ((e->e2->op == TOKint64 && e->e2->toInteger() == 1) || in Expression_optimize()
900 if (e->e1->op == TOKint64 && e->e1->toInteger() > 0 && in Expression_optimize()
901 !((e->e1->toInteger() - 1) & e->e1->toInteger()) && in Expression_optimize()
904 dinteger_t i = e->e1->toInteger(); in Expression_optimize()
[all …]
H A Dinitsem.c265 const uinteger_t idxvalue = idx->toInteger(); in visit()
271 length = (unsigned)idx->toInteger(); in visit()
317 uinteger_t edim = ((TypeSArray *)t)->dim->toInteger(); in visit()
428 se->numberOfCodeUnits(tynto) < ((TypeSArray *)tb)->dim->toInteger()) in visit()
480 uinteger_t dim1 = ((TypeSArray *)tb)->dim->toInteger(); in visit()
491 dim2 = ((TypeSArray *)tx)->dim->toInteger(); in visit()
768 uinteger_t adim = ((TypeSArray *)t)->dim->toInteger(); in visit()
793 const uinteger_t idxval = init->index[i]->toInteger(); in visit()
812 j = (size_t)(init->index[i])->toInteger(); in visit()
849 size_t dim = ((TypeSArray *)tn)->dim->toInteger(); in visit()
[all …]
H A Ddinterpret.c2006 indx += lwr->toInteger(); in visit()
3032 const sinteger_t i2 = e2->toInteger(); in interpretCommon()
3902 if (oldse->upr->toInteger() < upperbound + oldse->lwr->toInteger()) in interpretAssignToSlice()
3906 oldse->upr->toInteger() - oldse->lwr->toInteger()); in interpretAssignToSlice()
5019 sinteger_t indx = e2->toInteger(); in resolveIndexing()
5114 uinteger_t index = e2->toInteger(); in resolveIndexing()
5129 *pidx = e2->toInteger(); in resolveIndexing()
5275 uinteger_t ilwr = lwr->toInteger(); in visit()
5276 uinteger_t iupr = upr->toInteger(); in visit()
5377 uinteger_t ilwr = lwr->toInteger(); in visit()
[all …]
H A Ddcast.c342 dinteger_t value = e->toInteger(); in implicitConvTo()
551 if (((TypeSArray *)e->type)->dim->toInteger() == in implicitConvTo()
552 ((TypeSArray *)t)->dim->toInteger()) in implicitConvTo()
661 if (e->elements->dim != tsa->dim->toInteger()) in implicitConvTo()
706 const size_t tbasedim = tbase->dim->toInteger(); in implicitConvTo()
1499 dinteger_t dim = ((TypeSArray *)t1b)->dim->toInteger(); in castTo()
1688 se->len = (size_t)((TypeSArray *)tb)->dim->toInteger(); in castTo()
1864 size_t dim2 = (size_t)((TypeSArray *)tb)->dim->toInteger(); in castTo()
2028 if (e->elements->dim != tsa->dim->toInteger()) in castTo()
2066 const size_t tbasedim = tbase->dim->toInteger(); in castTo()
[all …]
H A Ddenum.c348 if (ec->toInteger()) in getMaxMinValue()
699 if (e->toInteger()) in semantic()
728 if (etest->toInteger()) in semantic()
H A Dcond.c104 size_t length = (size_t)el->toInteger(); in lowerArrayAggregate()
344 const dinteger_t lwr = sfe->rangefe->lwr->toInteger(); in lowerNonArrayAggregate()
345 dinteger_t upr = sfe->rangefe->upr->toInteger(); in lowerNonArrayAggregate()
/netbsd/regress/sys/uvm/pdsim/
H A Dgenpat5.hs50 intsqrt = truncate . (sqrt . ((flip encodeFloat) 0)) . toInteger
62 intsqrt = truncate . (sqrt . ((flip encodeFloat) 0)) . toInteger
/netbsd/external/gpl3/gcc/dist/gcc/d/
H A Dd-compiler.cc50 cst = build_integer_cst (expr->toInteger (), build_ctype (expr->type)); in paintAsType()
65 tree value = build_integer_cst (e->toInteger (), in paintAsType()
/netbsd/external/gpl3/gcc.old/dist/gcc/d/
H A Dd-frontend.cc458 cst = build_integer_cst (expr->toInteger (), build_ctype (expr->type)); in paintAsType()
473 tree value = build_integer_cst (e->toInteger (), in paintAsType()

123