Unit 183 src/decNumber/decNumber.c static Unit uarrone[1]={1}; // Unit array of 1, used for incrementing Unit 222 src/decNumber/decNumber.c static Int decGetDigits(Unit *, Int); Unit 234 src/decNumber/decNumber.c static void decReverse(Unit *, Unit *); Unit 235 src/decNumber/decNumber.c static void decSetCoeff(decNumber *, decContext *, const Unit *, Unit 240 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *, Int, Int); Unit 241 src/decNumber/decNumber.c static Int decShiftToMost(Unit *, Int, Int); Unit 245 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *, Int, const Unit *, Int, Int, Unit 246 src/decNumber/decNumber.c Unit *, Int); Unit 247 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *, Int, const Unit *, Int, Int); Unit 289 src/decNumber/decNumber.c Unit *up; // work pointer Unit 293 src/decNumber/decNumber.c *up=(Unit)(uin%(DECDPUNMAX+1)); Unit 315 src/decNumber/decNumber.c const Unit *up; // .. Unit 348 src/decNumber/decNumber.c const Unit *up; // .. Unit 416 src/decNumber/decNumber.c Unit *res; // where result will be built Unit 417 src/decNumber/decNumber.c Unit resbuff[SD2U(DECBUFFER+9)];// local buffer in case need temporary Unit 419 src/decNumber/decNumber.c Unit *allocres=NULL; // -> allocated result, iff allocated Unit 425 src/decNumber/decNumber.c Unit *up; // .. Unit 571 src/decNumber/decNumber.c Int needbytes=D2U(d)*sizeof(Unit);// bytes needed Unit 574 src/decNumber/decNumber.c allocres=(Unit *)malloc(needbytes); Unit 593 src/decNumber/decNumber.c *up=(Unit)out; // write unit Unit 598 src/decNumber/decNumber.c *up=(Unit)out; // write lsu Unit 605 src/decNumber/decNumber.c *up=(Unit)((Int)*c-(Int)'0'); Unit 706 src/decNumber/decNumber.c const Unit *ua, *ub; // -> operands Unit 707 src/decNumber/decNumber.c const Unit *msua, *msub; // -> operand msus Unit 708 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 726 src/decNumber/decNumber.c Unit a, b; // extract units Unit 737 src/decNumber/decNumber.c if (a&b&1) *uc=*uc+(Unit)powers[i]; // effect AND Unit 845 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); Unit 859 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); Unit 1023 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); Unit 1073 src/decNumber/decNumber.c const Unit *ua, *msua; // -> operand and its msu Unit 1074 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 1088 src/decNumber/decNumber.c Unit a; // extract unit Unit 1096 src/decNumber/decNumber.c if ((~a)&1) *uc=*uc+(Unit)powers[i]; // effect INVERT Unit 1337 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); Unit 1360 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); Unit 1663 src/decNumber/decNumber.c const Unit *ua, *ub; // -> operands Unit 1664 src/decNumber/decNumber.c const Unit *msua, *msub; // -> operand msus Unit 1665 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 1682 src/decNumber/decNumber.c Unit a, b; // extract units Unit 1692 src/decNumber/decNumber.c if ((a|b)&1) *uc=*uc+(Unit)powers[i]; // effect OR Unit 1976 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); Unit 2317 src/decNumber/decNumber.c Unit *msu=res->lsu+D2U(res->digits)-1; // current msu Unit 2318 src/decNumber/decNumber.c Unit *msumax=res->lsu+D2U(set->digits)-1; //-V778 // rotation msu Unit 2362 src/decNumber/decNumber.c *msumax=(Unit)(save/powers[shift-msudigits]); // and insert Unit 2364 src/decNumber/decNumber.c +(Unit)(rem*powers[DECDPUN-(shift-msudigits)]); // .. Unit 2367 src/decNumber/decNumber.c *msumax=*msumax+(Unit)(save*powers[msudigits-shift]); // [maybe *1] Unit 2380 src/decNumber/decNumber.c *msumax=*msumax+(Unit)(save*powers[msudigits]); Unit 2410 src/decNumber/decNumber.c Unit ret=0; // return value Unit 2716 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); Unit 2725 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); Unit 3046 src/decNumber/decNumber.c const Unit *ua, *ub; // -> operands Unit 3047 src/decNumber/decNumber.c const Unit *msua, *msub; // -> operand msus Unit 3048 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 3065 src/decNumber/decNumber.c Unit a, b; // extract units Unit 3075 src/decNumber/decNumber.c if ((a^b)&1) *uc=*uc+(Unit)powers[i]; // effect XOR Unit 3171 src/decNumber/decNumber.c const Unit *smsup, *s; // work Unit 3172 src/decNumber/decNumber.c Unit *d; // .. Unit 3252 src/decNumber/decNumber.c const Unit *up=dn->lsu; // Unit pointer, -> lsu Unit 3285 src/decNumber/decNumber.c Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [target pointer] Unit 3404 src/decNumber/decNumber.c const Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [input pointer] Unit 3588 src/decNumber/decNumber.c Unit *acc; // accumulator for result Unit 3589 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER*2+20)]; // local buffer [*2+20 reduces many Unit 3592 src/decNumber/decNumber.c Unit *allocacc=NULL; // -> allocated acc buffer, iff allocated Unit 3725 src/decNumber/decNumber.c *res->lsu=(Unit)partial; // [copy could have overwritten RHS] Unit 3734 src/decNumber/decNumber.c *res->lsu=(Unit)partial; Unit 3798 src/decNumber/decNumber.c if (need*sizeof(Unit)>sizeof(accbuff)) { Unit 3799 src/decNumber/decNumber.c allocacc=(Unit *)malloc(need*sizeof(Unit)); Unit 3970 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER+DECDPUN+10)]; // local buffer Unit 3971 src/decNumber/decNumber.c Unit *acc=accbuff; // -> accumulator array for result Unit 3972 src/decNumber/decNumber.c Unit *allocacc=NULL; // -> allocated buffer, iff allocated Unit 3973 src/decNumber/decNumber.c Unit *accnext; // -> where next digit will go Unit 3978 src/decNumber/decNumber.c Unit varbuff[SD2U(DECBUFFER*2+DECDPUN)]; // buffer for var1 Unit 3979 src/decNumber/decNumber.c Unit *var1=varbuff; // -> var1 array for long subtraction Unit 3980 src/decNumber/decNumber.c Unit *varalloc=NULL; // -> allocated buffer, iff used Unit 3981 src/decNumber/decNumber.c Unit *msu1; // -> msu of var1 Unit 3983 src/decNumber/decNumber.c const Unit *var2; // -> var2 array Unit 3984 src/decNumber/decNumber.c const Unit *msu2; // -> msu of var2 Unit 3993 src/decNumber/decNumber.c Unit thisunit; // current unit being accumulated Unit 3999 src/decNumber/decNumber.c Unit *target; // work Unit 4000 src/decNumber/decNumber.c const Unit *source; // .. Unit 4147 src/decNumber/decNumber.c if (acclength*sizeof(Unit)>sizeof(accbuff)) { Unit 4148 src/decNumber/decNumber.c allocacc=(Unit *)malloc(acclength*sizeof(Unit)); Unit 4171 src/decNumber/decNumber.c if ((var1units+1)*sizeof(Unit)>sizeof(varbuff)) { Unit 4172 src/decNumber/decNumber.c varalloc=(Unit *)malloc((var1units+1)*sizeof(Unit)); Unit 4221 src/decNumber/decNumber.c Unit *u; // work Unit 4258 src/decNumber/decNumber.c const Unit *pv1, *pv2; Unit 4259 src/decNumber/decNumber.c Unit v2; // units to compare Unit 4291 src/decNumber/decNumber.c thisunit=(Unit)(thisunit+mult); // accumulate Unit 4360 src/decNumber/decNumber.c Unit lsu=*accnext; Unit 4396 src/decNumber/decNumber.c Unit *quotlsu; // for save Unit 4442 src/decNumber/decNumber.c Unit *up; // .. Unit 4581 src/decNumber/decNumber.c Unit *acc; // -> accumulator Unit array Unit 4584 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER*4+1)]; // buffer (+1 for DECBUFFER==0, Unit 4586 src/decNumber/decNumber.c const Unit *mer, *mermsup; // work Unit 4624 src/decNumber/decNumber.c const Unit *cup; // .. Unit 4625 src/decNumber/decNumber.c Unit *up; // .. Unit 4719 src/decNumber/decNumber.c acc=(Unit *)zacc; // -> target Unit array Unit 4795 src/decNumber/decNumber.c *up=(Unit)(item-(part*(DECDPUNMAX+1))); Unit 4798 src/decNumber/decNumber.c *up=(Unit)item; up++; // [final needs no division] Unit 4807 src/decNumber/decNumber.c needbytes=(D2U(lhs->digits)+D2U(rhs->digits))*sizeof(Unit); Unit 4809 src/decNumber/decNumber.c allocacc=(Unit *)malloc(needbytes); Unit 4811 src/decNumber/decNumber.c acc=(Unit *)allocacc; // use the allocated space Unit 5085 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); Unit 5117 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); Unit 5129 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); Unit 5379 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit); Unit 5388 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit); Unit 5937 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *a, Int alength, Unit 5938 src/decNumber/decNumber.c const Unit *b, Int blength, Int exp) { Unit 5939 src/decNumber/decNumber.c Unit *acc; // accumulator for result Unit 5940 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER*2+1)]; // local buffer Unit 5941 src/decNumber/decNumber.c Unit *allocacc=NULL; // -> allocated acc buffer, iff allocated Unit 5943 src/decNumber/decNumber.c const Unit *l, *r, *u; // work Unit 5971 src/decNumber/decNumber.c if (need*sizeof(Unit)>sizeof(accbuff)) { Unit 5972 src/decNumber/decNumber.c allocacc=(Unit *)malloc(need*sizeof(Unit)); Unit 6041 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *a, Int alength, Unit 6042 src/decNumber/decNumber.c const Unit *b, Int blength, Int bshift, Unit 6043 src/decNumber/decNumber.c Unit *c, Int m) { Unit 6044 src/decNumber/decNumber.c const Unit *alsu=a; // A lsu [need to remember it] Unit 6045 src/decNumber/decNumber.c Unit *clsu=c; // C ditto Unit 6046 src/decNumber/decNumber.c Unit *minC; // low water mark for C Unit 6047 src/decNumber/decNumber.c Unit *maxC; // high water mark for C Unit 6069 src/decNumber/decNumber.c Unit *hold=minC; Unit 6085 src/decNumber/decNumber.c *c=(Unit)carry; Unit 6092 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6102 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6110 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6120 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6129 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6136 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6141 src/decNumber/decNumber.c *c=(Unit)(carry-(DECDPUNMAX+1)); // [helps additions] Unit 6146 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6152 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6171 src/decNumber/decNumber.c *c=(Unit)carry; Unit 6179 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6189 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6197 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6207 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6215 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6222 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6226 src/decNumber/decNumber.c *c=(Unit)(carry-(DECDPUNMAX+1)); Unit 6232 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6238 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6247 src/decNumber/decNumber.c *c=(Unit)carry; // place as new unit Unit 6256 src/decNumber/decNumber.c *c=(Unit)add; Unit 6266 src/decNumber/decNumber.c *c=(Unit)(add-carry-1); Unit 6291 src/decNumber/decNumber.c Unit *up; // -> current Unit Unit 6354 src/decNumber/decNumber.c static void decReverse(Unit *ulo, Unit *uhi) { Unit 6355 src/decNumber/decNumber.c Unit temp; Unit 6377 src/decNumber/decNumber.c static Int decShiftToMost(Unit *uar, Int digits, Int shift) { Unit 6378 src/decNumber/decNumber.c Unit *target, *source, *first; // work Unit 6384 src/decNumber/decNumber.c *uar=(Unit)(*uar*powers[shift]); Unit 6407 src/decNumber/decNumber.c if (target<=first) *target=(Unit)next; // write to target iff valid Unit 6414 src/decNumber/decNumber.c *target=(Unit)next; Unit 6433 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *uar, Int units, Int shift) { Unit 6434 src/decNumber/decNumber.c Unit *target, *up; // work Unit 6461 src/decNumber/decNumber.c *target=(Unit)quot; Unit 6473 src/decNumber/decNumber.c *target=(Unit)(*target+rem*powers[DECDPUN-cut]); Unit 6508 src/decNumber/decNumber.c +(D2U(set->digits)-1)*sizeof(Unit)); Unit 6581 src/decNumber/decNumber.c static void decSetCoeff(decNumber *dn, decContext *set, const Unit *lsu, Unit 6585 src/decNumber/decNumber.c const Unit *up; // work Unit 6586 src/decNumber/decNumber.c Unit *target; // .. Unit 6644 src/decNumber/decNumber.c Unit half=(Unit)powers[DECDPUN]>>1; Unit 6707 src/decNumber/decNumber.c *target=(Unit)quot; Unit 6719 src/decNumber/decNumber.c *target=(Unit)(*target+rem*powers[DECDPUN-cut]); Unit 6846 src/decNumber/decNumber.c Unit *up; // work Unit 6853 src/decNumber/decNumber.c *up=(Unit)powers[count-1]; // here 999 -> 100 etc. Unit 6870 src/decNumber/decNumber.c Unit *up, *sup; // work Unit 6878 src/decNumber/decNumber.c *up=(Unit)powers[count]-1; // here 100 in msu -> 999 Unit 6880 src/decNumber/decNumber.c for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1; Unit 6889 src/decNumber/decNumber.c *sup=(Unit)powers[count-1]-1; // here 999.. in msu -> 99.. Unit 7081 src/decNumber/decNumber.c Unit *up; // work Unit 7088 src/decNumber/decNumber.c *up=(Unit)(powers[count]-1); Unit 7224 src/decNumber/decNumber.c const Unit *up; // work Unit 7312 src/decNumber/decNumber.c Unit *msu; // -> target cut point Unit 7383 src/decNumber/decNumber.c const Unit *ul; Unit 7384 src/decNumber/decNumber.c Unit *ur, *uresp1; Unit 7444 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { Unit 7445 src/decNumber/decNumber.c Unit *up=uar+(len-1); // -> msu Unit 309 src/decNumber/decNumberLocal.h ((((SD2U(d)-1)*sizeof(Unit))+sizeof(decNumber)*2-1)/sizeof(decNumber)) Unit 102 src/dps8/dps8_decimal.c Unit *up=dn->lsu; // output pointer Unit 164 src/dps8/dps8_decimal.c *up=(Unit)nib; Unit 166 src/dps8/dps8_decimal.c *up=(Unit)(*up+nib*DECPOWERS[cut]); Unit 225 src/dps8/dps8_decimal.c Unit 12150 src/dps8/dps8_eis.c Unit 12276 src/dps8/dps8_eis.c Unit 12316 src/dps8/dps8_eis.c Unit 12317 src/dps8/dps8_eis.c