Unit 198 src/decNumber/decNumber.c static Unit uarrone[1]={1}; // Unit array of 1, used for incrementing Unit 237 src/decNumber/decNumber.c static Int decGetDigits(Unit *, Int); Unit 249 src/decNumber/decNumber.c static void decReverse(Unit *, Unit *); Unit 250 src/decNumber/decNumber.c static void decSetCoeff(decNumber *, decContext *, const Unit *, Unit 255 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *, Int, Int); Unit 256 src/decNumber/decNumber.c static Int decShiftToMost(Unit *, Int, Int); Unit 260 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *, Int, const Unit *, Int, Int, Unit 261 src/decNumber/decNumber.c Unit *, Int); Unit 262 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *, Int, const Unit *, Int, Int); Unit 304 src/decNumber/decNumber.c Unit *up; // work pointer Unit 308 src/decNumber/decNumber.c *up=(Unit)(uin%(DECDPUNMAX+1)); Unit 330 src/decNumber/decNumber.c const Unit *up; // .. Unit 363 src/decNumber/decNumber.c const Unit *up; // .. Unit 431 src/decNumber/decNumber.c Unit *res; // where result will be built Unit 432 src/decNumber/decNumber.c Unit resbuff[SD2U(DECBUFFER+9)];// local buffer in case need temporary Unit 434 src/decNumber/decNumber.c Unit *allocres=NULL; // -> allocated result, iff allocated Unit 440 src/decNumber/decNumber.c Unit *up; // .. Unit 586 src/decNumber/decNumber.c Int needbytes=D2U(d)*sizeof(Unit);// bytes needed Unit 589 src/decNumber/decNumber.c allocres=(Unit *)malloc(needbytes); Unit 608 src/decNumber/decNumber.c *up=(Unit)out; // write unit Unit 613 src/decNumber/decNumber.c *up=(Unit)out; // write lsu Unit 620 src/decNumber/decNumber.c *up=(Unit)((Int)*c-(Int)'0'); Unit 721 src/decNumber/decNumber.c const Unit *ua, *ub; // -> operands Unit 722 src/decNumber/decNumber.c const Unit *msua, *msub; // -> operand msus Unit 723 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 741 src/decNumber/decNumber.c Unit a, b; // extract units Unit 752 src/decNumber/decNumber.c if (a&b&1) *uc=*uc+(Unit)powers[i]; // effect AND Unit 860 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); Unit 874 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); Unit 1038 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); Unit 1089 src/decNumber/decNumber.c const Unit *ua, *msua; // -> operand and its msu Unit 1090 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 1104 src/decNumber/decNumber.c Unit a; // extract unit Unit 1112 src/decNumber/decNumber.c if ((~a)&1) *uc=*uc+(Unit)powers[i]; // effect INVERT Unit 1353 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); Unit 1376 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); Unit 1679 src/decNumber/decNumber.c const Unit *ua, *ub; // -> operands Unit 1680 src/decNumber/decNumber.c const Unit *msua, *msub; // -> operand msus Unit 1681 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 1698 src/decNumber/decNumber.c Unit a, b; // extract units Unit 1708 src/decNumber/decNumber.c if ((a|b)&1) *uc=*uc+(Unit)powers[i]; // effect OR Unit 1992 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); Unit 2333 src/decNumber/decNumber.c Unit *msu=res->lsu+D2U(res->digits)-1; // current msu Unit 2334 src/decNumber/decNumber.c Unit *msumax=res->lsu+D2U(set->digits)-1; //-V778 // rotation msu Unit 2378 src/decNumber/decNumber.c *msumax=(Unit)(save/powers[shift-msudigits]); // and insert Unit 2380 src/decNumber/decNumber.c +(Unit)(rem*powers[DECDPUN-(shift-msudigits)]); // .. Unit 2383 src/decNumber/decNumber.c *msumax=*msumax+(Unit)(save*powers[msudigits-shift]); // [maybe *1] Unit 2396 src/decNumber/decNumber.c *msumax=*msumax+(Unit)(save*powers[msudigits]); Unit 2426 src/decNumber/decNumber.c Unit ret=0; // return value Unit 2732 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); Unit 2741 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); Unit 3062 src/decNumber/decNumber.c const Unit *ua, *ub; // -> operands Unit 3063 src/decNumber/decNumber.c const Unit *msua, *msub; // -> operand msus Unit 3064 src/decNumber/decNumber.c Unit *uc, *msuc; // -> result and its msu Unit 3081 src/decNumber/decNumber.c Unit a, b; // extract units Unit 3091 src/decNumber/decNumber.c if ((a^b)&1) *uc=*uc+(Unit)powers[i]; // effect XOR Unit 3187 src/decNumber/decNumber.c const Unit *smsup, *s; // work Unit 3188 src/decNumber/decNumber.c Unit *d; // .. Unit 3268 src/decNumber/decNumber.c const Unit *up=dn->lsu; // Unit pointer, -> lsu Unit 3301 src/decNumber/decNumber.c Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [target pointer] Unit 3421 src/decNumber/decNumber.c const Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [input pointer] Unit 3605 src/decNumber/decNumber.c Unit *acc; // accumulator for result Unit 3606 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER*2+20)]; // local buffer [*2+20 reduces many Unit 3609 src/decNumber/decNumber.c Unit *allocacc=NULL; // -> allocated acc buffer, iff allocated Unit 3742 src/decNumber/decNumber.c *res->lsu=(Unit)partial; // [copy could have overwritten RHS] Unit 3751 src/decNumber/decNumber.c *res->lsu=(Unit)partial; Unit 3815 src/decNumber/decNumber.c if (need*sizeof(Unit)>sizeof(accbuff)) { Unit 3817 src/decNumber/decNumber.c allocacc=(Unit *)malloc(need*sizeof(Unit)); Unit 3988 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER+DECDPUN+10)]; // local buffer Unit 3989 src/decNumber/decNumber.c Unit *acc=accbuff; // -> accumulator array for result Unit 3990 src/decNumber/decNumber.c Unit *allocacc=NULL; // -> allocated buffer, iff allocated Unit 3991 src/decNumber/decNumber.c Unit *accnext; // -> where next digit will go Unit 3996 src/decNumber/decNumber.c Unit varbuff[SD2U(DECBUFFER*2+DECDPUN)]; // buffer for var1 Unit 3997 src/decNumber/decNumber.c Unit *var1=varbuff; // -> var1 array for long subtraction Unit 3998 src/decNumber/decNumber.c Unit *varalloc=NULL; // -> allocated buffer, iff used Unit 3999 src/decNumber/decNumber.c Unit *msu1; // -> msu of var1 Unit 4001 src/decNumber/decNumber.c const Unit *var2; // -> var2 array Unit 4002 src/decNumber/decNumber.c const Unit *msu2; // -> msu of var2 Unit 4011 src/decNumber/decNumber.c Unit thisunit; // current unit being accumulated Unit 4017 src/decNumber/decNumber.c Unit *target; // work Unit 4018 src/decNumber/decNumber.c const Unit *source; // .. Unit 4165 src/decNumber/decNumber.c if (acclength*sizeof(Unit)>sizeof(accbuff)) { Unit 4167 src/decNumber/decNumber.c allocacc=(Unit *)malloc(acclength*sizeof(Unit)); Unit 4190 src/decNumber/decNumber.c if ((var1units+1)*sizeof(Unit)>sizeof(varbuff)) { Unit 4192 src/decNumber/decNumber.c varalloc=(Unit *)malloc((var1units+1)*sizeof(Unit)); Unit 4241 src/decNumber/decNumber.c Unit *u; // work Unit 4278 src/decNumber/decNumber.c const Unit *pv1, *pv2; Unit 4279 src/decNumber/decNumber.c Unit v2; // units to compare Unit 4311 src/decNumber/decNumber.c thisunit=(Unit)(thisunit+mult); // accumulate Unit 4380 src/decNumber/decNumber.c Unit lsu=*accnext; Unit 4416 src/decNumber/decNumber.c Unit *quotlsu; // for save Unit 4462 src/decNumber/decNumber.c Unit *up; // .. Unit 4601 src/decNumber/decNumber.c Unit *acc; // -> accumulator Unit array Unit 4604 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER*4+1)]; // buffer (+1 for DECBUFFER==0, Unit 4606 src/decNumber/decNumber.c const Unit *mer, *mermsup; // work Unit 4644 src/decNumber/decNumber.c const Unit *cup; // .. Unit 4645 src/decNumber/decNumber.c Unit *up; // .. Unit 4739 src/decNumber/decNumber.c acc=(Unit *)zacc; // -> target Unit array Unit 4815 src/decNumber/decNumber.c *up=(Unit)(item-(part*(DECDPUNMAX+1))); Unit 4818 src/decNumber/decNumber.c *up=(Unit)item; up++; // [final needs no division] Unit 4827 src/decNumber/decNumber.c needbytes=(D2U(lhs->digits)+D2U(rhs->digits))*sizeof(Unit); Unit 4829 src/decNumber/decNumber.c allocacc=(Unit *)malloc(needbytes); Unit 4831 src/decNumber/decNumber.c acc=(Unit *)allocacc; // use the allocated space Unit 5105 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); Unit 5137 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); Unit 5149 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); Unit 5399 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit); Unit 5408 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit); Unit 5957 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *a, Int alength, Unit 5958 src/decNumber/decNumber.c const Unit *b, Int blength, Int exp) { Unit 5959 src/decNumber/decNumber.c Unit *acc; // accumulator for result Unit 5960 src/decNumber/decNumber.c Unit accbuff[SD2U(DECBUFFER*2+1)]; // local buffer Unit 5961 src/decNumber/decNumber.c Unit *allocacc=NULL; // -> allocated acc buffer, iff allocated Unit 5963 src/decNumber/decNumber.c const Unit *l, *r, *u; // work Unit 5991 src/decNumber/decNumber.c if (need*sizeof(Unit)>sizeof(accbuff)) { Unit 5992 src/decNumber/decNumber.c allocacc=(Unit *)malloc(need*sizeof(Unit)); Unit 6061 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *a, Int alength, Unit 6062 src/decNumber/decNumber.c const Unit *b, Int blength, Int bshift, Unit 6063 src/decNumber/decNumber.c Unit *c, Int m) { Unit 6064 src/decNumber/decNumber.c const Unit *alsu=a; // A lsu [need to remember it] Unit 6065 src/decNumber/decNumber.c Unit *clsu=c; // C ditto Unit 6066 src/decNumber/decNumber.c Unit *minC; // low water mark for C Unit 6067 src/decNumber/decNumber.c Unit *maxC; // high water mark for C Unit 6089 src/decNumber/decNumber.c Unit *hold=minC; Unit 6105 src/decNumber/decNumber.c *c=(Unit)carry; Unit 6112 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6122 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6130 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6140 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6149 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6156 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6161 src/decNumber/decNumber.c *c=(Unit)(carry-(DECDPUNMAX+1)); // [helps additions] Unit 6166 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6172 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6191 src/decNumber/decNumber.c *c=(Unit)carry; Unit 6199 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6209 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6217 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6227 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6235 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); // remainder Unit 6242 src/decNumber/decNumber.c *c=(Unit)(carry-est*(DECDPUNMAX+1)); Unit 6246 src/decNumber/decNumber.c *c=(Unit)(carry-(DECDPUNMAX+1)); Unit 6252 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6258 src/decNumber/decNumber.c *c=(Unit)(carry%(DECDPUNMAX+1)); Unit 6267 src/decNumber/decNumber.c *c=(Unit)carry; // place as new unit Unit 6276 src/decNumber/decNumber.c *c=(Unit)add; Unit 6286 src/decNumber/decNumber.c *c=(Unit)(add-carry-1); Unit 6311 src/decNumber/decNumber.c Unit *up; // -> current Unit Unit 6374 src/decNumber/decNumber.c static void decReverse(Unit *ulo, Unit *uhi) { Unit 6375 src/decNumber/decNumber.c Unit temp; Unit 6397 src/decNumber/decNumber.c static Int decShiftToMost(Unit *uar, Int digits, Int shift) { Unit 6398 src/decNumber/decNumber.c Unit *target, *source, *first; // work Unit 6404 src/decNumber/decNumber.c *uar=(Unit)(*uar*powers[shift]); Unit 6427 src/decNumber/decNumber.c if (target<=first) *target=(Unit)next; // write to target iff valid Unit 6434 src/decNumber/decNumber.c *target=(Unit)next; Unit 6453 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *uar, Int units, Int shift) { Unit 6454 src/decNumber/decNumber.c Unit *target, *up; // work Unit 6481 src/decNumber/decNumber.c *target=(Unit)quot; Unit 6493 src/decNumber/decNumber.c *target=(Unit)(*target+rem*powers[DECDPUN-cut]); Unit 6528 src/decNumber/decNumber.c +(D2U(set->digits)-1)*sizeof(Unit)); Unit 6601 src/decNumber/decNumber.c static void decSetCoeff(decNumber *dn, decContext *set, const Unit *lsu, Unit 6605 src/decNumber/decNumber.c const Unit *up; // work Unit 6606 src/decNumber/decNumber.c Unit *target; // .. Unit 6664 src/decNumber/decNumber.c Unit half=(Unit)powers[DECDPUN]>>1; Unit 6727 src/decNumber/decNumber.c *target=(Unit)quot; Unit 6739 src/decNumber/decNumber.c *target=(Unit)(*target+rem*powers[DECDPUN-cut]); Unit 6866 src/decNumber/decNumber.c Unit *up; // work Unit 6873 src/decNumber/decNumber.c *up=(Unit)powers[count-1]; // here 999 -> 100 etc. Unit 6890 src/decNumber/decNumber.c Unit *up, *sup; // work Unit 6898 src/decNumber/decNumber.c *up=(Unit)powers[count]-1; // here 100 in msu -> 999 Unit 6900 src/decNumber/decNumber.c for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1; Unit 6911 src/decNumber/decNumber.c *sup=(Unit)powers[count-1]-1; // here 999.. in msu -> 99.. Unit 7103 src/decNumber/decNumber.c Unit *up; // work Unit 7110 src/decNumber/decNumber.c *up=(Unit)(powers[count]-1); Unit 7246 src/decNumber/decNumber.c const Unit *up; // work Unit 7334 src/decNumber/decNumber.c Unit *msu; // -> target cut point Unit 7405 src/decNumber/decNumber.c const Unit *ul; Unit 7406 src/decNumber/decNumber.c Unit *ur, *uresp1; Unit 7466 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { Unit 7467 src/decNumber/decNumber.c Unit *up=uar+(len-1); // -> msu Unit 307 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 163 src/dps8/dps8_decimal.c *up=(Unit)nib; Unit 165 src/dps8/dps8_decimal.c *up=(Unit)(*up+nib*DECPOWERS[cut]); Unit 224 src/dps8/dps8_decimal.c Unit 12034 src/dps8/dps8_eis.c Unit 12160 src/dps8/dps8_eis.c Unit 12200 src/dps8/dps8_eis.c Unit 12201 src/dps8/dps8_eis.c