Lines Matching refs:D2U
678 Int needbytes=D2U(d)*sizeof(Unit);/* bytes needed */ in uprv_decNumberFromString()
692 up=res+D2U(d)-1; /* -> msu */ in uprv_decNumberFromString()
841 msua=ua+D2U(lhs->digits)-1; /* -> msu of lhs */ in uprv_decNumberAnd()
842 msub=ub+D2U(rhs->digits)-1; /* -> msu of rhs */ in uprv_decNumberAnd()
843 msuc=uc+D2U(set->digits)-1; /* -> msu of result */ in uprv_decNumberAnd()
969 needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); in uprv_decNumberCompareTotalMag()
983 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in uprv_decNumberCompareTotalMag()
1162 needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); in uprv_decNumberFMA()
1235 msua=ua+D2U(rhs->digits)-1; /* -> msu of rhs */ in uprv_decNumberInvert()
1236 msuc=uc+D2U(set->digits)-1; /* -> msu of result */ in uprv_decNumberInvert()
1495 needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); in uprv_decNumberLog10()
1518 needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); in uprv_decNumberLog10()
1856 msua=ua+D2U(lhs->digits)-1; /* -> msu of lhs */ in uprv_decNumberOr()
1857 msub=ub+D2U(rhs->digits)-1; /* -> msu of rhs */ in uprv_decNumberOr()
1858 msuc=uc+D2U(set->digits)-1; /* -> msu of result */ in uprv_decNumberOr()
2165 needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); in uprv_decNumberPower()
2517 Unit *msu=res->lsu+D2U(res->digits)-1; /* current msu */ in uprv_decNumberRotate()
2518 Unit *msumax=res->lsu+D2U(set->digits)-1; /* rotation msu */ in uprv_decNumberRotate()
2559 decShiftToLeast(res->lsu, D2U(res->digits), shift); in uprv_decNumberRotate()
2746 decShiftToLeast(res->lsu, D2U(res->digits), -shift); in uprv_decNumberShift()
2926 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in uprv_decNumberSquareRoot()
2935 needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); in uprv_decNumberSquareRoot()
3124 decShiftToLeast(a->lsu, D2U(a->digits), todrop); in uprv_decNumberSquareRoot()
3286 msua=ua+D2U(lhs->digits)-1; /* -> msu of lhs */ in uprv_decNumberXor()
3287 msub=ub+D2U(rhs->digits)-1; /* -> msu of rhs */ in uprv_decNumberXor()
3288 msuc=uc+D2U(set->digits)-1; /* -> msu of result */ in uprv_decNumberXor()
3407 smsup=src->lsu+D2U(src->digits); /* -> source msu+1 */ in uprv_decNumberCopy()
3525 Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [target pointer] */ in uprv_decNumberSetBCD()
3660 const Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [input pointer] */ in decToString()
3999 res->digits=decGetDigits(res->lsu, D2U(res->digits)); in decAddOp()
4053 rhsshift=D2U(padding+1)-1; /* this much by Unit shift .. */ in decAddOp()
4073 Int need=D2U(maxdigits)+1; in decAddOp()
4089 decDumpAr('A', lhs->lsu, D2U(lhs->digits)); in decAddOp()
4090 decDumpAr('B', rhs->lsu, D2U(rhs->digits)); in decAddOp()
4097 res->digits=decUnitAddSub(lhs->lsu, D2U(lhs->digits), in decAddOp()
4098 rhs->lsu, D2U(rhs->digits), in decAddOp()
4106 decDumpAr('+', acc, D2U(res->digits)); in decAddOp()
4120 res->digits=decGetDigits(acc, D2U(res->digits)); in decAddOp()
4131 *(acc+D2U(res->digits))=0; /* ensure leading 0 is there */ in decAddOp()
4139 res->digits=decGetDigits(acc, D2U(res->digits)); in decAddOp()
4155 res->digits=decGetDigits(res->lsu, D2U(res->digits)); in decAddOp()
4439 acclength=D2U(reqdigits+DECDPUN); /* in Units */ in decDivideOp()
4462 var1units=D2U(maxdigits)+2; in decDivideOp()
4481 source=lhs->lsu+D2U(lhs->digits)-1; /* msu of input array */ in decDivideOp()
4487 var2units=D2U(rhs->digits); /* rhs actual length (units) */ in decDivideOp()
4518 var1initpad=(var1units-D2U(lhs->digits))*DECDPUN; in decDivideOp()
4677 accunits=D2U(accdigits); in decDivideOp()
4731 accunits=D2U(accdigits); in decDivideOp()
4752 compare=decUnitCompare(accnext, tarunits, rhs->lsu, D2U(rhs->digits), in decDivideOp()
4800 rhs->lsu, D2U(rhs->digits), in decDivideOp()
4803 accunits=D2U(accdigits); /* and recalculate the units for copy */ in decDivideOp()
5113 needbytes=(D2U(lhs->digits)+D2U(rhs->digits))*sizeof(Unit); in decMultiplyOp()
5128 madlength=D2U(lhs->digits); /* this won't change */ in decMultiplyOp()
5129 mermsup=rhs->lsu+D2U(rhs->digits); /* -> msu+1 of multiplier */ in decMultiplyOp()
5400 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in decExpOp()
5432 needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); in decExpOp()
5444 needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); in decExpOp()
5713 needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit);
5722 needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit);
6111 result=decUnitCompare(lhs->lsu, D2U(lhs->digits),
6112 rhs->lsu, D2U(rhs->digits), 0);
6255 compare=decUnitCompare(lhs->lsu, D2U(lhs->digits),
6256 rhs->lsu, D2U(rhs->digits),
6303 if (alength>blength+(Int)D2U(exp)) return 1;
6304 if (alength+1<blength+(Int)D2U(exp)) return -1;
6309 need=blength+D2U(exp); /* maximum real length of B */
6691 decShiftToLeast(dn->lsu, D2U(dn->digits), d);
6743 source=uar+D2U(digits)-1; /* where msu comes from */
6744 target=source+D2U(shift); /* where upper part of first cut goes */
6750 first=uar+D2U(digits+shift)-1; /* where msu of source will end up */
6801 up=uar+D2U(shift);
6807 up=uar+D2U(shift-cut); /* source; correct to whole Units */
6862 +(D2U(set->digits)-1)*sizeof(Unit));
7266 decUnitAddSub(dn->lsu, D2U(dn->digits), uarrone, 1, 0, dn->lsu, bump);
7691 msu=dn->lsu+D2U(dn->digits-drop)-1; /* -> likely msu */
7759 uresp1=res->lsu+D2U(set->digits);
7761 res->digits=D2U(set->digits)*DECDPUN;
7885 up=dn->lsu+D2U(dn->digits)-1; /* msu */
8036 decDumpAr('I', dn->lsu, D2U(dn->digits));