Int 32 src/decNumber/decContext.c static const Int mfcone=1; // constant 1 Int 75 src/decNumber/decContext.c decContext * decContextDefault(decContext *context, Int kind) { Int 343 src/decNumber/decContext.c Int status=context->status; Int 380 src/decNumber/decContext.c Int decContextTestEndian(void) { Int 381 src/decNumber/decContext.c Int res=0; // optimist Int 387 src/decNumber/decContext.c res=(Int)LITEND-dle; Int 193 src/decNumber/decNumber.c #define BADINT (Int)0x80000000 // most-negative Int; error indicator Int 195 src/decNumber/decNumber.c #define BIGEVEN (Int)0x80000002 Int 196 src/decNumber/decNumber.c #define BIGODD (Int)0x80000003 Int 202 src/decNumber/decNumber.c # define eInt Int // extended integer Int 224 src/decNumber/decNumber.c static void decApplyRound(decNumber *, decContext *, Int, uInt *); Int 225 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, Flag); Int 230 src/decNumber/decNumber.c Int *, uInt *); Int 231 src/decNumber/decNumber.c static decNumber * decDecap(decNumber *, Int); Int 236 src/decNumber/decNumber.c static void decFinalize(decNumber *, decContext *, Int *, uInt *); Int 237 src/decNumber/decNumber.c static Int decGetDigits(Unit *, Int); Int 238 src/decNumber/decNumber.c static Int decGetInt(const decNumber *); Int 251 src/decNumber/decNumber.c Int, Int *, uInt *); Int 254 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *, decContext *, Int *, uInt *); Int 255 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *, Int, Int); Int 256 src/decNumber/decNumber.c static Int decShiftToMost(Unit *, Int, Int); Int 259 src/decNumber/decNumber.c static decNumber * decTrim(decNumber *, decContext *, Flag, Flag, Int *); Int 260 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *, Int, const Unit *, Int, Int, Int 261 src/decNumber/decNumber.c Unit *, Int); Int 262 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *, Int, const Unit *, Int, Int); Int 268 src/decNumber/decNumber.c static void decFinish(decNumber *, decContext *, Int *, uInt *); Int 290 src/decNumber/decNumber.c decNumber * decNumberFromInt32(decNumber *dn, Int in) { Int 325 src/decNumber/decNumber.c Int decNumberToInt32(const decNumber *dn, decContext *set) { Int 329 src/decNumber/decNumber.c Int d; // work Int 348 src/decNumber/decNumber.c Int i=X10(hi)+lo; Int 362 src/decNumber/decNumber.c Int d; // work Int 429 src/decNumber/decNumber.c Int exponent=0; // working exponent [assume 0] Int 435 src/decNumber/decNumber.c Int d=0; // count of digits found in decimal part Int 442 src/decNumber/decNumber.c Int cut, out; // .. Int 444 src/decNumber/decNumber.c Int residue; // rounding residue Int 542 src/decNumber/decNumber.c exponent=X10(exponent)+(Int)*c-(Int)'0'; Int 586 src/decNumber/decNumber.c Int needbytes=D2U(d)*sizeof(Unit);// bytes needed Int 588 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(resbuff)) { // too big for local Int 604 src/decNumber/decNumber.c out=X10(out)+(Int)*c-(Int)'0'; Int 620 src/decNumber/decNumber.c *up=(Unit)((Int)*c-(Int)'0'); Int 724 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 748 src/decNumber/decNumber.c Int i, j; Int 1091 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 1105 src/decNumber/decNumber.c Int i, j; // work Int 1229 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent Int 1278 src/decNumber/decNumber.c Int p; // working precision Int 1279 src/decNumber/decNumber.c Int t; // digits in exponent of A Int 1325 src/decNumber/decNumber.c Int residue=0; // (no residue) Int 1616 src/decNumber/decNumber.c Int result; // .. Int 1682 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 1705 src/decNumber/decNumber.c Int i, j; Int 1810 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS Int 1811 src/decNumber/decNumber.c Int n; // rhs in binary Int 1815 src/decNumber/decNumber.c Int i; // work Int 1817 src/decNumber/decNumber.c Int dropped; // .. Int 1821 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 1869 src/decNumber/decNumber.c Int shift=set->digits-1; Int 2013 src/decNumber/decNumber.c Int shift=set->digits-1; Int 2179 src/decNumber/decNumber.c Int residue=0; // as usual Int 2180 src/decNumber/decNumber.c Int dropped; // work Int 2309 src/decNumber/decNumber.c Int rotate; // rhs as an Int Int 2457 src/decNumber/decNumber.c Int reqexp; // requested exponent change [B] Int 2459 src/decNumber/decNumber.c Int residue; // work Int 2479 src/decNumber/decNumber.c Int exp=res->exponent; // save for overflow test Int 2521 src/decNumber/decNumber.c Int shift; // rhs as an Int Int 2647 src/decNumber/decNumber.c Int maxp; // largest working precision Int 2648 src/decNumber/decNumber.c Int workp; // working precision Int 2649 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 2652 src/decNumber/decNumber.c Int exp; // working exponent Int 2653 src/decNumber/decNumber.c Int ideal; // ideal (preferred) exponent Int 2654 src/decNumber/decNumber.c Int needbytes; // work Int 2655 src/decNumber/decNumber.c Int dropped; // .. Int 2733 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(buff)) { Int 2742 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(bufa)) { // [same applies to b] Int 2915 src/decNumber/decNumber.c Int todrop=ideal-a->exponent; // most that can be dropped Int 2919 src/decNumber/decNumber.c Int maxexp=set->emax-set->digits+1; Int 2920 src/decNumber/decNumber.c Int maxdrop=maxexp-a->exponent; Int 2942 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent Int 3065 src/decNumber/decNumber.c Int msudigs; // digits in res msu Int 3088 src/decNumber/decNumber.c Int i, j; Int 3308 src/decNumber/decNumber.c Int cut=MSUDIGITS(n); // [faster than remainder] Int 3325 src/decNumber/decNumber.c Int decNumberIsNormal(const decNumber *dn, decContext *set) { Int 3326 src/decNumber/decNumber.c Int ae; // adjusted exponent Int 3342 src/decNumber/decNumber.c Int decNumberIsSubnormal(const decNumber *dn, decContext *set) { Int 3343 src/decNumber/decNumber.c Int ae; // adjusted exponent Int 3364 src/decNumber/decNumber.c Int dropped; // work Int 3416 src/decNumber/decNumber.c Int exp=dn->exponent; // local copy Int 3417 src/decNumber/decNumber.c Int e; // E-part value Int 3418 src/decNumber/decNumber.c Int pre; // digits before the '.' Int 3419 src/decNumber/decNumber.c Int cut; // for counting digits in a Unit Int 3466 src/decNumber/decNumber.c Int adj; // adjustment Int 3493 src/decNumber/decNumber.c Int n=pre; Int 3599 src/decNumber/decNumber.c Int rhsshift; // working shift (in Units) Int 3600 src/decNumber/decNumber.c Int maxdigits; // longest logical length Int 3601 src/decNumber/decNumber.c Int mult; // multiplier Int 3602 src/decNumber/decNumber.c Int residue; // rounding accumulator Int 3610 src/decNumber/decNumber.c Int reqdigits=set->digits; // local copy; requested DIGITS Int 3611 src/decNumber/decNumber.c Int padding; // work Int 3657 src/decNumber/decNumber.c Int adjust; // work Int 3658 src/decNumber/decNumber.c Int lexp=lhs->exponent; // save in case LHS==RES Int 3694 src/decNumber/decNumber.c Int adjust; // work Int 3695 src/decNumber/decNumber.c Int rexp=rhs->exponent; // save in case RHS==RES Int 3735 src/decNumber/decNumber.c Int partial=*lhs->lsu; Int 3740 src/decNumber/decNumber.c partial<(Int)powers[lhs->digits])) { // .. Int 3771 src/decNumber/decNumber.c Int exponent; // new exponent of LHS (if adjusted) Int 3813 src/decNumber/decNumber.c Int need=D2U(maxdigits)+1; Int 3992 src/decNumber/decNumber.c Int acclength; // length of acc needed [Units] Int 3993 src/decNumber/decNumber.c Int accunits; // count of units accumulated Int 3994 src/decNumber/decNumber.c Int accdigits; // count of digits accumulated Int 4003 src/decNumber/decNumber.c Int msu2plus; // msu2 plus one [does not vary] Int 4006 src/decNumber/decNumber.c Int var1units, var2units; // actual lengths Int 4007 src/decNumber/decNumber.c Int var2ulen; // logical length (units) Int 4008 src/decNumber/decNumber.c Int var1initpad=0; // var1 initial padding (digits) Int 4009 src/decNumber/decNumber.c Int maxdigits; // longest LHS or required acc length Int 4010 src/decNumber/decNumber.c Int mult; // multiplier for subtraction Int 4012 src/decNumber/decNumber.c Int residue; // for rounding Int 4013 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS Int 4014 src/decNumber/decNumber.c Int exponent; // working exponent Int 4015 src/decNumber/decNumber.c Int maxexponent=0; // DIVIDE maximum exponent if unrounded Int 4020 src/decNumber/decNumber.c Int shift, cut; // .. Int 4022 src/decNumber/decNumber.c Int dropped; // work Int 4302 src/decNumber/decNumber.c mult=(Int)(((eInt)*msu1*(DECDPUNMAX+1)+*(msu1-1))/msu2pair); Int 4307 src/decNumber/decNumber.c mult=(Int)(((eInt)*msu1*(DECDPUNMAX+1)+*(msu1-1))/msu2plus); Int 4383 src/decNumber/decNumber.c Int drop=0; Int 4414 src/decNumber/decNumber.c Int postshift; // work Int 4417 src/decNumber/decNumber.c Int quotdigits; // .. Int 4424 src/decNumber/decNumber.c Int exp=lhs->exponent; // save min(exponents) Int 4461 src/decNumber/decNumber.c Int compare, tarunits; // work Int 4482 src/decNumber/decNumber.c Int half; // half to add to lower unit Int 4491 src/decNumber/decNumber.c Int exp, expunits, exprem; // work Int 4522 src/decNumber/decNumber.c expunits, accnext, -(Int)powers[exprem]); Int 4597 src/decNumber/decNumber.c Int accunits; // Units of accumulator in use Int 4598 src/decNumber/decNumber.c Int exponent; // work Int 4599 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 4602 src/decNumber/decNumber.c Int needbytes; // size calculator Int 4607 src/decNumber/decNumber.c Int madlength; // Units in multiplicand Int 4608 src/decNumber/decNumber.c Int shift; // Units to shift multiplicand by Int 4635 src/decNumber/decNumber.c Int zoff; // accumulator offset Int 4639 src/decNumber/decNumber.c Int ilhs, irhs, iacc; // item counts in the arrays Int 4640 src/decNumber/decNumber.c Int lazy; // lazy carry counter Int 4643 src/decNumber/decNumber.c Int count; // work Int 4647 src/decNumber/decNumber.c Int p; // .. Int 4712 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(zlhibuff)) { Int 4716 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(zrhibuff)) { Int 4732 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(zaccbuff)) { Int 4828 src/decNumber/decNumber.c if (needbytes>(Int)sizeof(accbuff)) { Int 4979 src/decNumber/decNumber.c Int h; // adjusted exponent for 0.xxxx Int 4980 src/decNumber/decNumber.c Int p; // working precision Int 4981 src/decNumber/decNumber.c Int residue; // rounding residue Int 4985 src/decNumber/decNumber.c Int comp; // work Int 5049 src/decNumber/decNumber.c Int shift=set->digits-1; Int 5084 src/decNumber/decNumber.c Int maxlever=(rhs->digits>8?1:0); Int 5095 src/decNumber/decNumber.c Int lever=MINI(8-h, maxlever); // leverage attainable Int 5096 src/decNumber/decNumber.c Int use=-rhs->digits-lever; // exponent to use for RHS Int 5193 src/decNumber/decNumber.c Int seenbit=0; // set once a 1-bit is seen Int 5194 src/decNumber/decNumber.c Int i; // counter Int 5195 src/decNumber/decNumber.c Int n=powers[h]; // always positive Int 5325 src/decNumber/decNumber.c Int residue; // rounding residue Int 5326 src/decNumber/decNumber.c Int r; // rhs=f*10**r [see below] Int 5327 src/decNumber/decNumber.c Int p; // working precision Int 5328 src/decNumber/decNumber.c Int pp; // precision for iteration Int 5329 src/decNumber/decNumber.c Int t; // work Int 5566 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS Int 5567 src/decNumber/decNumber.c Int reqexp; // requested exponent [-scale] Int 5568 src/decNumber/decNumber.c Int residue=0; // rounding residue Int 5569 src/decNumber/decNumber.c Int etiny=set->emin-(reqdigits-1); Int 5631 src/decNumber/decNumber.c Int adjust=reqexp-lhs->exponent; // digit adjustment needed Int 5734 src/decNumber/decNumber.c Int result=0; // default result value Int 5836 src/decNumber/decNumber.c Int residue=0; // rounding accumulator Int 5893 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, Int 5895 src/decNumber/decNumber.c Int result; // result value Int 5896 src/decNumber/decNumber.c Int sigr; // rhs signum Int 5897 src/decNumber/decNumber.c Int compare; // work Int 5957 src/decNumber/decNumber.c static Int decUnitCompare(const Unit *a, Int alength, Int 5958 src/decNumber/decNumber.c const Unit *b, Int blength, Int exp) { Int 5962 src/decNumber/decNumber.c Int accunits, need; // units in use or needed for acc Int 5964 src/decNumber/decNumber.c Int expunits, exprem, result; // .. Int 5981 src/decNumber/decNumber.c if (alength>blength+(Int)D2U(exp)) return 1; Int 5982 src/decNumber/decNumber.c if (alength+1<blength+(Int)D2U(exp)) return -1; Int 6001 src/decNumber/decNumber.c -(Int)powers[exprem]); Int 6061 src/decNumber/decNumber.c static Int decUnitAddSub(const Unit *a, Int alength, Int 6062 src/decNumber/decNumber.c const Unit *b, Int blength, Int bshift, Int 6063 src/decNumber/decNumber.c Unit *c, Int m) { Int 6069 src/decNumber/decNumber.c Int add; // work Int 6071 src/decNumber/decNumber.c Int est; // estimated quotient Int 6308 src/decNumber/decNumber.c Flag noclamp, Int *dropped) { Int 6309 src/decNumber/decNumber.c Int d, exp; // work Int 6351 src/decNumber/decNumber.c Int maxd=set->emax-set->digits+1-dn->exponent; Int 6397 src/decNumber/decNumber.c static Int decShiftToMost(Unit *uar, Int digits, Int shift) { Int 6399 src/decNumber/decNumber.c Int cut; // odd 0's to add Int 6453 src/decNumber/decNumber.c static Int decShiftToLeast(Unit *uar, Int units, Int shift) { Int 6455 src/decNumber/decNumber.c Int cut, count; // work Int 6456 src/decNumber/decNumber.c Int quot, rem; // for division Int 6523 src/decNumber/decNumber.c Int residue=0; // rounding accumulator Int 6556 src/decNumber/decNumber.c decContext *set, Int *residue, uInt *status) { Int 6602 src/decNumber/decNumber.c Int len, Int *residue, uInt *status) { Int 6603 src/decNumber/decNumber.c Int discard; // number of digits to discard Int 6607 src/decNumber/decNumber.c Int count; // .. Int 6782 src/decNumber/decNumber.c static void decApplyRound(decNumber *dn, decContext *set, Int residue, Int 6784 src/decNumber/decNumber.c Int bump; // 1 if coefficient needs to be incremented Int 6799 src/decNumber/decNumber.c Int lsd5=*dn->lsu%5; // get lsd and quintate Int 6948 src/decNumber/decNumber.c static void decFinish(decNumber *dn, decContext *set, Int *residue, Int 6983 src/decNumber/decNumber.c static void decFinalize(decNumber *dn, decContext *set, Int *residue, Int 6985 src/decNumber/decNumber.c Int shift; // shift needed if clamping Int 6986 src/decNumber/decNumber.c Int tinyexp=set->emin-dn->digits+1; // precalculate subnormal boundary Int 6995 src/decNumber/decNumber.c Int comp; Int 7061 src/decNumber/decNumber.c Int emax=set->emax; // limit value Int 7104 src/decNumber/decNumber.c Int count=set->digits; // nines to add Int 7136 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *dn, decContext *set, Int *residue, Int 7139 src/decNumber/decNumber.c Int etiny, adjust; // .. Int 7244 src/decNumber/decNumber.c static Int decGetInt(const decNumber *dn) { Int 7245 src/decNumber/decNumber.c Int theInt; // result accumulator Int 7247 src/decNumber/decNumber.c Int got; // digits (real or not) processed Int 7248 src/decNumber/decNumber.c Int ilength=dn->digits+dn->exponent; // integral length Int 7268 src/decNumber/decNumber.c Int count=-dn->exponent; // digits to discard Int 7276 src/decNumber/decNumber.c Int rem; // work Int 7297 src/decNumber/decNumber.c Int save=theInt; Int 7304 src/decNumber/decNumber.c if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11; Int 7333 src/decNumber/decNumber.c static decNumber *decDecap(decNumber *dn, Int drop) { Int 7335 src/decNumber/decNumber.c Int cut; // work Int 7466 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { Int 7468 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu Int 342 src/decNumber/decNumberLocal.h Int exponent; /* Unadjusted signed exponent (q), or */ Int 489 src/decNumber/decNumberLocal.h # define GETECON(df) ((Int)((DFWORD((df), 0)&0x03ffffff)>>(32-6-DECECONL))) Int 491 src/decNumber/decNumberLocal.h # define GETWECON(df) ((Int)((DFWWORD((df), 0)&0x03ffffff)>>(32-6-DECWECONL))) Int 493 src/decNumber/decNumberLocal.h # define GETEXP(df) ((Int)(DECCOMBEXP[DFWORD((df), 0)>>26]+GETECON(df))) Int 495 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 119 src/dps8/dps8_decimal.c digits=(Int)(last-first)+1; // calculate digits .. Int 226 src/dps8/dps8_decimal.c Int 48 src/dps8/dps8_decimal.h decNumber * decBCD9ToNumber(const word9 *bcd, Int length, const Int scale, decNumber *dn); Int 12035 src/dps8/dps8_eis.c Int 12154 src/dps8/dps8_eis.c Int 12160 src/dps8/dps8_eis.c Int 12161 src/dps8/dps8_eis.c