Int 30 src/decNumber/decContext.c static const Int mfcone=1; // constant 1 Int 73 src/decNumber/decContext.c decContext * decContextDefault(decContext *context, Int kind) { Int 341 src/decNumber/decContext.c Int status=context->status; Int 378 src/decNumber/decContext.c Int decContextTestEndian(void) { Int 379 src/decNumber/decContext.c Int res=0; // optimist Int 385 src/decNumber/decContext.c res=(Int)LITEND-dle; Int 178 src/decNumber/decNumber.c #define BADINT (Int)0x80000000 // most-negative Int; error indicator Int 180 src/decNumber/decNumber.c #define BIGEVEN (Int)0x80000002 Int 181 src/decNumber/decNumber.c #define BIGODD (Int)0x80000003 Int 187 src/decNumber/decNumber.c # define eInt Int // extended integer Int 209 src/decNumber/decNumber.c static void decApplyRound(decNumber *, decContext *, Int, uInt *); Int 210 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, Flag); Int 215 src/decNumber/decNumber.c Int *, uInt *); Int 216 src/decNumber/decNumber.c static decNumber * decDecap(decNumber *, Int); Int 221 src/decNumber/decNumber.c static void decFinalize(decNumber *, decContext *, Int *, uInt *); Int 222 src/decNumber/decNumber.c static Int decGetDigits(Unit *, Int); Int 223 src/decNumber/decNumber.c static Int decGetInt(const decNumber *); Int 236 src/decNumber/decNumber.c Int, Int *, uInt *); Int 239 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *, decContext *, Int *, uInt *); Int 240 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *, Int, Int); Int 241 src/decNumber/decNumber.c static Int decShiftToMost(Unit *, Int, Int); Int 244 src/decNumber/decNumber.c static decNumber * decTrim(decNumber *, decContext *, Flag, Flag, Int *); Int 245 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *, Int, const Unit *, Int, Int, Int 246 src/decNumber/decNumber.c Unit *, Int); Int 247 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *, Int, const Unit *, Int, Int); Int 253 src/decNumber/decNumber.c static void decFinish(decNumber *, decContext *, Int *, uInt *); Int 275 src/decNumber/decNumber.c decNumber * decNumberFromInt32(decNumber *dn, Int in) { Int 310 src/decNumber/decNumber.c Int decNumberToInt32(const decNumber *dn, decContext *set) { Int 314 src/decNumber/decNumber.c Int d; // work Int 333 src/decNumber/decNumber.c Int i=X10(hi)+lo; Int 347 src/decNumber/decNumber.c Int d; // work Int 414 src/decNumber/decNumber.c Int exponent=0; // working exponent [assume 0] Int 420 src/decNumber/decNumber.c Int d=0; // count of digits found in decimal part Int 427 src/decNumber/decNumber.c Int cut, out; // .. Int 429 src/decNumber/decNumber.c Int residue; // rounding residue Int 527 src/decNumber/decNumber.c exponent=X10(exponent)+(Int)*c-(Int)'0'; Int 571 src/decNumber/decNumber.c Int needbytes=D2U(d)*sizeof(Unit);// bytes needed Int 573 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(resbuff)) { // too big for local Int 589 src/decNumber/decNumber.c out=X10(out)+(Int)*c-(Int)'0'; Int 605 src/decNumber/decNumber.c *up=(Unit)((Int)*c-(Int)'0'); Int 709 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 733 src/decNumber/decNumber.c Int i, j; Int 1075 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 1089 src/decNumber/decNumber.c Int i, j; // work Int 1213 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent Int 1262 src/decNumber/decNumber.c Int p; // working precision Int 1263 src/decNumber/decNumber.c Int t; // digits in exponent of A Int 1309 src/decNumber/decNumber.c Int residue=0; // (no residue) Int 1600 src/decNumber/decNumber.c Int result; // .. Int 1666 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 1689 src/decNumber/decNumber.c Int i, j; Int 1794 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS Int 1795 src/decNumber/decNumber.c Int n; // rhs in binary Int 1799 src/decNumber/decNumber.c Int i; // work Int 1801 src/decNumber/decNumber.c Int dropped; // .. Int 1805 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 1853 src/decNumber/decNumber.c Int shift=set->digits-1; Int 1997 src/decNumber/decNumber.c Int shift=set->digits-1; Int 2163 src/decNumber/decNumber.c Int residue=0; // as usual Int 2164 src/decNumber/decNumber.c Int dropped; // work Int 2293 src/decNumber/decNumber.c Int rotate; // rhs as an Int Int 2441 src/decNumber/decNumber.c Int reqexp; // requested exponent change [B] Int 2443 src/decNumber/decNumber.c Int residue; // work Int 2463 src/decNumber/decNumber.c Int exp=res->exponent; // save for overflow test Int 2505 src/decNumber/decNumber.c Int shift; // rhs as an Int Int 2631 src/decNumber/decNumber.c Int maxp; // largest working precision Int 2632 src/decNumber/decNumber.c Int workp; // working precision Int 2633 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 2636 src/decNumber/decNumber.c Int exp; // working exponent Int 2637 src/decNumber/decNumber.c Int ideal; // ideal (preferred) exponent Int 2638 src/decNumber/decNumber.c Int needbytes; // work Int 2639 src/decNumber/decNumber.c Int dropped; // .. Int 2717 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(buff)) { Int 2726 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(bufa)) { // [same applies to b] Int 2899 src/decNumber/decNumber.c Int todrop=ideal-a->exponent; // most that can be dropped Int 2903 src/decNumber/decNumber.c Int maxexp=set->emax-set->digits+1; Int 2904 src/decNumber/decNumber.c Int maxdrop=maxexp-a->exponent; Int 2926 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent Int 3049 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 3072 src/decNumber/decNumber.c Int i, j; Int 3292 src/decNumber/decNumber.c Int cut=MSUDIGITS(n); // [faster than remainder] Int 3309 src/decNumber/decNumber.c Int decNumberIsNormal(const decNumber *dn, decContext *set) { Int 3310 src/decNumber/decNumber.c Int ae; // adjusted exponent Int 3326 src/decNumber/decNumber.c Int decNumberIsSubnormal(const decNumber *dn, decContext *set) { Int 3327 src/decNumber/decNumber.c Int ae; // adjusted exponent Int 3348 src/decNumber/decNumber.c Int dropped; // work Int 3399 src/decNumber/decNumber.c Int exp=dn->exponent; // local copy Int 3400 src/decNumber/decNumber.c Int e; // E-part value Int 3401 src/decNumber/decNumber.c Int pre; // digits before the '.' Int 3402 src/decNumber/decNumber.c Int cut; // for counting digits in a Unit Int 3449 src/decNumber/decNumber.c Int adj; // adjustment Int 3476 src/decNumber/decNumber.c Int n=pre; Int 3582 src/decNumber/decNumber.c Int rhsshift; // working shift (in Units) Int 3583 src/decNumber/decNumber.c Int maxdigits; // longest logical length Int 3584 src/decNumber/decNumber.c Int mult; // multiplier Int 3585 src/decNumber/decNumber.c Int residue; // rounding accumulator Int 3593 src/decNumber/decNumber.c Int reqdigits=set->digits; // local copy; requested DIGITS Int 3594 src/decNumber/decNumber.c Int padding; // work Int 3640 src/decNumber/decNumber.c Int adjust; // work Int 3641 src/decNumber/decNumber.c Int lexp=lhs->exponent; // save in case LHS==RES Int 3677 src/decNumber/decNumber.c Int adjust; // work Int 3678 src/decNumber/decNumber.c Int rexp=rhs->exponent; // save in case RHS==RES Int 3718 src/decNumber/decNumber.c Int partial=*lhs->lsu; Int 3723 src/decNumber/decNumber.c partial<(Int)powers[lhs->digits])) { // .. Int 3754 src/decNumber/decNumber.c Int exponent; // new exponent of LHS (if adjusted) Int 3796 src/decNumber/decNumber.c Int need=D2U(maxdigits)+1; Int 3974 src/decNumber/decNumber.c Int acclength; // length of acc needed [Units] Int 3975 src/decNumber/decNumber.c Int accunits; // count of units accumulated Int 3976 src/decNumber/decNumber.c Int accdigits; // count of digits accumulated Int 3985 src/decNumber/decNumber.c Int msu2plus; // msu2 plus one [does not vary] Int 3988 src/decNumber/decNumber.c Int var1units, var2units; // actual lengths Int 3989 src/decNumber/decNumber.c Int var2ulen; // logical length (units) Int 3990 src/decNumber/decNumber.c Int var1initpad=0; // var1 initial padding (digits) Int 3991 src/decNumber/decNumber.c Int maxdigits; // longest LHS or required acc length Int 3992 src/decNumber/decNumber.c Int mult; // multiplier for subtraction Int 3994 src/decNumber/decNumber.c Int residue; // for rounding Int 3995 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS Int 3996 src/decNumber/decNumber.c Int exponent; // working exponent Int 3997 src/decNumber/decNumber.c Int maxexponent=0; // DIVIDE maximum exponent if unrounded Int 4002 src/decNumber/decNumber.c Int shift, cut; // .. Int 4004 src/decNumber/decNumber.c Int dropped; // work Int 4282 src/decNumber/decNumber.c mult=(Int)(((eInt)*msu1*(DECDPUNMAX+1)+*(msu1-1))/msu2pair); Int 4287 src/decNumber/decNumber.c mult=(Int)(((eInt)*msu1*(DECDPUNMAX+1)+*(msu1-1))/msu2plus); Int 4363 src/decNumber/decNumber.c Int drop=0; Int 4394 src/decNumber/decNumber.c Int postshift; // work Int 4397 src/decNumber/decNumber.c Int quotdigits; // .. Int 4404 src/decNumber/decNumber.c Int exp=lhs->exponent; // save min(exponents) Int 4441 src/decNumber/decNumber.c Int compare, tarunits; // work Int 4462 src/decNumber/decNumber.c Int half; // half to add to lower unit Int 4471 src/decNumber/decNumber.c Int exp, expunits, exprem; // work Int 4502 src/decNumber/decNumber.c expunits, accnext, -(Int)powers[exprem]); Int 4577 src/decNumber/decNumber.c Int accunits; // Units of accumulator in use Int 4578 src/decNumber/decNumber.c Int exponent; // work Int 4579 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 4582 src/decNumber/decNumber.c Int needbytes; // size calculator Int 4587 src/decNumber/decNumber.c Int madlength; // Units in multiplicand Int 4588 src/decNumber/decNumber.c Int shift; // Units to shift multiplicand by Int 4615 src/decNumber/decNumber.c Int zoff; // accumulator offset Int 4619 src/decNumber/decNumber.c Int ilhs, irhs, iacc; // item counts in the arrays Int 4620 src/decNumber/decNumber.c Int lazy; // lazy carry counter Int 4623 src/decNumber/decNumber.c Int count; // work Int 4627 src/decNumber/decNumber.c Int p; // .. Int 4692 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(zlhibuff)) { Int 4696 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(zrhibuff)) { Int 4712 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(zaccbuff)) { Int 4808 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(accbuff)) { Int 4959 src/decNumber/decNumber.c Int h; // adjusted exponent for 0.xxxx Int 4960 src/decNumber/decNumber.c Int p; // working precision Int 4961 src/decNumber/decNumber.c Int residue; // rounding residue Int 4965 src/decNumber/decNumber.c Int comp; // work Int 5029 src/decNumber/decNumber.c Int shift=set->digits-1; Int 5064 src/decNumber/decNumber.c Int maxlever=(rhs->digits>8?1:0); Int 5075 src/decNumber/decNumber.c Int lever=MINI(8-h, maxlever); // leverage attainable Int 5076 src/decNumber/decNumber.c Int use=-rhs->digits-lever; // exponent to use for RHS Int 5173 src/decNumber/decNumber.c Int seenbit=0; // set once a 1-bit is seen Int 5174 src/decNumber/decNumber.c Int i; // counter Int 5175 src/decNumber/decNumber.c Int n=powers[h]; // always positive Int 5305 src/decNumber/decNumber.c Int residue; // rounding residue Int 5306 src/decNumber/decNumber.c Int r; // rhs=f*10**r [see below] Int 5307 src/decNumber/decNumber.c Int p; // working precision Int 5308 src/decNumber/decNumber.c Int pp; // precision for iteration Int 5309 src/decNumber/decNumber.c Int t; // work Int 5546 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS Int 5547 src/decNumber/decNumber.c Int reqexp; // requested exponent [-scale] Int 5548 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 5549 src/decNumber/decNumber.c Int etiny=set->emin-(reqdigits-1); Int 5611 src/decNumber/decNumber.c Int adjust=reqexp-lhs->exponent; // digit adjustment needed Int 5714 src/decNumber/decNumber.c Int result=0; // default result value Int 5816 src/decNumber/decNumber.c Int residue=0; // rounding accumulator Int 5873 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, Int 5875 src/decNumber/decNumber.c Int result; // result value Int 5876 src/decNumber/decNumber.c Int sigr; // rhs signum Int 5877 src/decNumber/decNumber.c Int compare; // work Int 5937 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *a, Int alength, Int 5938 src/decNumber/decNumber.c const Unit *b, Int blength, Int exp) { Int 5942 src/decNumber/decNumber.c Int accunits, need; // units in use or needed for acc Int 5944 src/decNumber/decNumber.c Int expunits, exprem, result; // .. Int 5961 src/decNumber/decNumber.c if (alength>blength+(Int)D2U(exp)) return 1; Int 5962 src/decNumber/decNumber.c if (alength+1<blength+(Int)D2U(exp)) return -1; Int 5981 src/decNumber/decNumber.c -(Int)powers[exprem]); Int 6041 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *a, Int alength, Int 6042 src/decNumber/decNumber.c const Unit *b, Int blength, Int bshift, Int 6043 src/decNumber/decNumber.c Unit *c, Int m) { Int 6049 src/decNumber/decNumber.c Int add; // work Int 6051 src/decNumber/decNumber.c Int est; // estimated quotient Int 6288 src/decNumber/decNumber.c Flag noclamp, Int *dropped) { Int 6289 src/decNumber/decNumber.c Int d, exp; // work Int 6331 src/decNumber/decNumber.c Int maxd=set->emax-set->digits+1-dn->exponent; Int 6377 src/decNumber/decNumber.c static Int decShiftToMost(Unit *uar, Int digits, Int shift) { Int 6379 src/decNumber/decNumber.c Int cut; // odd 0's to add Int 6433 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *uar, Int units, Int shift) { Int 6435 src/decNumber/decNumber.c Int cut, count; // work Int 6436 src/decNumber/decNumber.c Int quot, rem; // for division Int 6503 src/decNumber/decNumber.c Int residue=0; // rounding accumulator Int 6536 src/decNumber/decNumber.c decContext *set, Int *residue, uInt *status) { Int 6582 src/decNumber/decNumber.c Int len, Int *residue, uInt *status) { Int 6583 src/decNumber/decNumber.c Int discard; // number of digits to discard Int 6587 src/decNumber/decNumber.c Int count; // .. Int 6762 src/decNumber/decNumber.c static void decApplyRound(decNumber *dn, decContext *set, Int residue, Int 6764 src/decNumber/decNumber.c Int bump; // 1 if coefficient needs to be incremented Int 6779 src/decNumber/decNumber.c Int lsd5=*dn->lsu%5; // get lsd and quintate Int 6926 src/decNumber/decNumber.c static void decFinish(decNumber *dn, decContext *set, Int *residue, Int 6961 src/decNumber/decNumber.c static void decFinalize(decNumber *dn, decContext *set, Int *residue, Int 6963 src/decNumber/decNumber.c Int shift; // shift needed if clamping Int 6964 src/decNumber/decNumber.c Int tinyexp=set->emin-dn->digits+1; // precalculate subnormal boundary Int 6973 src/decNumber/decNumber.c Int comp; Int 7039 src/decNumber/decNumber.c Int emax=set->emax; // limit value Int 7082 src/decNumber/decNumber.c Int count=set->digits; // nines to add Int 7114 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *dn, decContext *set, Int *residue, Int 7117 src/decNumber/decNumber.c Int etiny, adjust; // .. Int 7222 src/decNumber/decNumber.c static Int decGetInt(const decNumber *dn) { Int 7223 src/decNumber/decNumber.c Int theInt; // result accumulator Int 7225 src/decNumber/decNumber.c Int got; // digits (real or not) processed Int 7226 src/decNumber/decNumber.c Int ilength=dn->digits+dn->exponent; // integral length Int 7246 src/decNumber/decNumber.c Int count=-dn->exponent; // digits to discard Int 7254 src/decNumber/decNumber.c Int rem; // work Int 7275 src/decNumber/decNumber.c Int save=theInt; Int 7282 src/decNumber/decNumber.c if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11; Int 7311 src/decNumber/decNumber.c static decNumber *decDecap(decNumber *dn, Int drop) { Int 7313 src/decNumber/decNumber.c Int cut; // work Int 7444 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { Int 7446 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu Int 344 src/decNumber/decNumberLocal.h Int exponent; /* Unadjusted signed exponent (q), or */ Int 491 src/decNumber/decNumberLocal.h # define GETECON(df) ((Int)((DFWORD((df), 0)&0x03ffffff)>>(32-6-DECECONL))) Int 493 src/decNumber/decNumberLocal.h # define GETWECON(df) ((Int)((DFWWORD((df), 0)&0x03ffffff)>>(32-6-DECWECONL))) Int 495 src/decNumber/decNumberLocal.h # define GETEXP(df) ((Int)(DECCOMBEXP[DFWORD((df), 0)>>26]+GETECON(df))) Int 497 src/decNumber/decNumberLocal.h # define GETEXPUN(df) ((Int)GETEXP(df)-DECBIAS) Int 97 src/dps8/dps8_decimal.c decNumber * decBCD9ToNumber(const word9 *bcd, Int length, const Int scale, decNumber *dn) Int 103 src/dps8/dps8_decimal.c Int digits; // digits count Int 104 src/dps8/dps8_decimal.c Int cut=0; // phase of output Int 120 src/dps8/dps8_decimal.c digits=(Int)(last-first)+1; // calculate digits .. Int 227 src/dps8/dps8_decimal.c Int 45 src/dps8/dps8_decimal.h decNumber * decBCD9ToNumber(const word9 *bcd, Int length, const Int scale, decNumber *dn); Int 12163 src/dps8/dps8_eis.c Int 12282 src/dps8/dps8_eis.c Int 12288 src/dps8/dps8_eis.c Int 12289 src/dps8/dps8_eis.c