Lines Matching refs:units

669     /* a temporary units array if rounding is needed  */
840 Unit a, b; /* extract units */
1855 Unit a, b; /* extract units */
2509 uInt units, shift; /* work */
2513 for (msu++; msu<=msumax; msu++) *msu=0; /* ensure high units=0 */
2522 /* [if there are no whole units left to rotate, the */
2530 /* 3. rotate all the units by reversing left part, right */
2533 /* example: rotate right 8 digits (2 units + 2), DECDPUN=3. */
2549 units=rotate/DECDPUN; /* whole units to rotate */
2551 if (shift>0) { /* not an exact number of units */
2565 /* If whole units to rotate... */
2566 if (units>0) { /* some to do */
2567 /* Step 2: the units to touch are the whole ones in rotate, */
2571 if (shift>0) { /* not an exact number of units */
2573 decShiftToLeast(res->lsu, units, shift);
2577 /* Step 3: rotate the units array using triple reverse */
2579 decReverse(res->lsu+units, msumax); /* left part */
2580 decReverse(res->lsu, res->lsu+units-1); /* right part */
2582 } /* whole units to rotate */
3285 Unit a, b; /* extract units */
3824 /* units) and multiplication (part units). */
4065 /* buffer needed, choose it; units for maxdigits digits will be */
4094 *DECDPUN; /* [units -> digits] */
4208 /* msu2pair/plus=1st 2 or 1 units of var2, +1 to allow for round */
4220 /* If same then tops2=msu2pair -- {units 1&2 of var2} */
4258 Int accunits; /* count of units accumulated */
4272 Int var2ulen; /* logical length (units) */
4435 /* printf("malloc dvacc %ld units\n", acclength); */
4445 /* The maximum units needed for var1 (long subtraction) is: */
4453 /* [Note: unused units do not participate in decUnitAddSub data] */
4460 /* printf("malloc dvvar %ld units\n", var1units+1); */
4480 var2ulen=var1units; /* rhs logical length (units) */
4481 var2units=D2U(rhs->digits); /* rhs actual length (units) */
4495 /* The calculation is working in units, which may have leading zeros, */
4519 /* clean any most-significant units which were just emptied */
4533 accunits=0; /* no units accumulated yet */
4540 /* strip leading zero units [from either pre-adjust or from */
4548 Unit v2; /* units to compare */
4570 /* Bring in two units of var2 to provide a good estimate. */
4622 /* divide and just did the last ('units') unit */
4789 /* Calculate units and remainder from exponent. */
4797 accunits=D2U(accdigits); /* and recalculate the units for copy */
4852 /* The fastpath version lumps units together into 8-digit or 9-digit */
4855 /* units for continuing processing. Despite this overhead, the */
4999 /* units. Therefore iacc extra bytes are needed at the front */
5001 /* accumulator starts offset the appropriate number of units */
5086 /* units. This can be done in-place in the accumulator and in */
5090 /* units, where 2<=N<=9). */
5100 accunits=up-acc; /* count of units */
5102 else { /* here to use units directly, without chunking ['old code'] */
5140 } /* unchunked units */
6267 /* Arg5 is E (0 if the units are aligned) */
6278 Int accunits, need; /* units in use or needed for acc */
6285 /* same number of units in both -- need unit-by-unit compare */
6292 return 0; /* all units match */
6312 /* Calculate units and remainder from exponent. */
6321 /* check units of the result before freeing any storage */
6348 /* C is filled from the lsu; only those units necessary to complete */
6355 /* Arg5 is B shift in Units (>=0; pads with 0 units if positive) */
6698 /* The units ulo through uhi are reversed in place (if the number */
6699 /* of units is odd, the middle one is untouched). Note that the */
6772 /* units is length of the array, in units */
6774 /* must be zero or positive and <= than units*DECDPUN. */
6776 /* returns the new length of the integer in the array, in units */
6781 static Int decShiftToLeast(Unit *uar, Int units, Int shift) {
6786 if (shift==0) return units; /* [fastpath] nothing to do */
6787 if (shift==units*DECDPUN) { /* [fastpath] little to do */
6796 for (; up<uar+units; target++, up++) *target=*up;
6802 count=units*DECDPUN-shift; /* the maximum new length */
7608 /* spin up whole units until reach the Unit with the unit digit */
7751 /* copy safe number of units, then decapitate */
7800 /* len is the length of the array in units [>=1] */