Lines Matching refs:Int

190 #define BADINT (Int)0x80000000	/* most-negative Int; error indicator */
196 #define eInt Int /* extended integer */
221 static void decApplyRound (decNumber *, decContext *, Int, uInt *);
222 static Int decCompare (const decNumber * lhs, const decNumber * rhs);
226 Int *, uInt *);
229 static void decFinalize (decNumber *, decContext *, Int *, uInt *);
230 static Int decGetDigits (const Unit *, Int);
232 static Int decGetInt (const decNumber *, decContext *);
234 static Int decGetInt (const decNumber *);
242 Int, Int *, uInt *);
244 static void decSetSubnormal (decNumber *, decContext *, Int *, uInt *);
245 static Int decShiftToLeast (Unit *, Int, Int);
246 static Int decShiftToMost (Unit *, Int, Int);
250 static decNumber *decTrim (decNumber *, Flag, Int *);
251 static Int decUnitAddSub (const Unit *, Int, const Unit *, Int, Int, Unit *, Int);
252 static Int decUnitCompare (const Unit *, Int, const Unit *, Int, Int);
258 static void decFinish (decNumber *, decContext *, Int *, uInt *);
296 static void decDumpAr (char, const Unit *, Int);
354 Int exponent = 0; /* working exponent [assume 0] */ in decNumberFromString()
359 Int need; /* units needed for result */ in decNumberFromString()
360 Int d = 0; /* count of digits found in decimal part */ in decNumberFromString()
368 Int i; /* .. */ in decNumberFromString()
370 Int residue = 0; /* rounding residue */ in decNumberFromString()
508 exponent = X10 (exponent) + (Int) * c - (Int) '0'; in decNumberFromString()
591 *up = (Unit) (X10 (*up) + (Int) * c - (Int) '0'); in decNumberFromString()
608 *up = (Unit) ((Int) * c - (Int) '0'); in decNumberFromString()
915 Int residue = 0; /* as usual */ in decNumberNormalize()
916 Int dropped; /* work */ in decNumberNormalize()
983 Int reqdigits = set->digits; /* requested DIGITS */ in decNumberPower()
984 Int n; /* RHS in binary */ in decNumberPower()
985 Int i; /* work */ in decNumberPower()
987 Int dropped; /* .. */ in decNumberPower()
991 Int residue = 0; /* rounding residue */ in decNumberPower()
1459 Int maxp = set->digits + 2; /* largest working precision */ in decNumberSquareRoot()
1460 Int residue = 0; /* rounding residue */ in decNumberSquareRoot()
1462 Int exp; /* working exponent */ in decNumberSquareRoot()
1463 Int ideal; /* ideal (preferred) exponent */ in decNumberSquareRoot()
1465 Int dropped; /* .. */ in decNumberSquareRoot()
1746 Int todrop = ideal - a->exponent; /* most we can drop */ in decNumberSquareRoot()
1920 Int dropped; /* work */ in decNumberTrim()
2005 Int exp = dn->exponent; /* local copy */ in decToString()
2006 Int e; /* E-part value */ in decToString()
2007 Int pre; /* digits before the '.' */ in decToString()
2008 Int cut; /* for counting digits in a Unit */ in decToString()
2077 Int adj; /* adjustment */ in decToString()
2235 Int rhsshift; /* working shift (in Units) */ in decAddOp()
2236 Int maxdigits; /* longest logical length */ in decAddOp()
2237 Int mult; /* multiplier */ in decAddOp()
2238 Int residue; /* rounding accumulator */ in decAddOp()
2246 Int reqdigits = set->digits; /* local copy; requested DIGITS */ in decAddOp()
2248 Int padding; /* work */ in decAddOp()
2314 Int adjust; /* work */ in decAddOp()
2315 Int lexp = lhs->exponent; /* save in case LHS==RES */ in decAddOp()
2362 Int adjust; /* work */ in decAddOp()
2363 Int rexp = rhs->exponent; /* save in case RHS==RES */ in decAddOp()
2403 Int partial = *lhs->lsu; in decAddOp()
2406 Int maxv = DECDPUNMAX; /* highest no-overflow */ in decAddOp()
2471 Int shift = reqdigits - rhs->digits; /* left shift needed */ in decAddOp()
2514 Int need = D2U (maxdigits) + 1; in decAddOp()
2717 Int acclength; /* length of acc needed [Units] */ in decDivideOp()
2718 Int accunits; /* count of units accumulated */ in decDivideOp()
2719 Int accdigits; /* count of digits accumulated */ in decDivideOp()
2727 Int var1units, var2units; /* actual lengths */ in decDivideOp()
2728 Int var2ulen; /* logical length (units) */ in decDivideOp()
2729 Int var1initpad = 0; /* var1 initial padding (digits) */ in decDivideOp()
2732 Int msu2plus; /* msu2 plus one [does not vary] */ in decDivideOp()
2734 Int maxdigits; /* longest LHS or required acc length */ in decDivideOp()
2735 Int mult; /* multiplier for subtraction */ in decDivideOp()
2737 Int residue; /* for rounding */ in decDivideOp()
2738 Int reqdigits = set->digits; /* requested DIGITS */ in decDivideOp()
2739 Int exponent; /* working exponent */ in decDivideOp()
2740 Int maxexponent = 0; /* DIVIDE maximum exponent if unrounded */ in decDivideOp()
2746 Int shift, cut; /* .. */ in decDivideOp()
2748 Int dropped; /* work */ in decDivideOp()
3098 (Int) (((eInt) * msu1 * (DECDPUNMAX + 1) + in decDivideOp()
3106 (Int) (((eInt) * msu1 * (DECDPUNMAX + 1) + in decDivideOp()
3202 Int drop = 0; in decDivideOp()
3240 Int postshift; /* work */ in decDivideOp()
3243 Int quotdigits; /* .. */ in decDivideOp()
3249 Int exp = lhs->exponent; /* save min(exponents) */ in decDivideOp()
3291 Int compare, tarunits; /* work */ in decDivideOp()
3320 Int half; /* half to add to lower unit */ in decDivideOp()
3331 Int exp, expunits, exprem; /* work */ in decDivideOp()
3371 -(Int) powers[exprem]); in decDivideOp()
3439 Int accunits; /* Units of accumulator in use */ in decMultiplyOp()
3440 Int madlength; /* Units in multiplicand */ in decMultiplyOp()
3441 Int shift; /* Units to shift multiplicand by */ in decMultiplyOp()
3442 Int need; /* Accumulator units needed */ in decMultiplyOp()
3443 Int exponent; /* work */ in decMultiplyOp()
3444 Int residue = 0; /* rounding residue */ in decMultiplyOp()
3618 Int reqdigits = set->digits; /* requested DIGITS */ in decQuantizeOp()
3619 Int reqexp; /* requested exponent [-scale] */ in decQuantizeOp()
3620 Int residue = 0; /* rounding residue */ in decQuantizeOp()
3622 Int etiny = set->emin - (set->digits - 1); in decQuantizeOp()
3707 Int adjust = reqexp - lhs->exponent; /* digit adjustment needed */ in decQuantizeOp()
3800 Int result = 0; /* default result value */ in decCompareOp()
3890 Int residue = 0; /* rounding accumulator */ in decCompareOp()
3958 static Int
3961 Int result; /* result value */ in decCompare()
3962 Int sigr; /* rhs signum */ in decCompare()
3963 Int compare; /* work */ in decCompare()
4027 static Int
4028 decUnitCompare (const Unit * a, Int alength, const Unit * b, Int blength, Int exp) in decUnitCompare()
4033 Int accunits, need; /* units in use or needed for acc */ in decUnitCompare()
4035 Int expunits, exprem, result; /* .. */ in decUnitCompare()
4058 if (alength > blength + (Int) D2U (exp)) in decUnitCompare()
4060 if (alength + 1 < blength + (Int) D2U (exp)) in decUnitCompare()
4083 -(Int) powers[exprem]); in decUnitCompare()
4147 static Int
4148 decUnitAddSub (const Unit * a, Int alength, in decUnitAddSub()
4149 const Unit * b, Int blength, Int bshift, Unit * c, Int m) in decUnitAddSub()
4156 Int add; /* work */ in decUnitAddSub()
4158 Int est; /* estimated quotient */ in decUnitAddSub()
4369 decTrim (decNumber * dn, Flag all, Int * dropped) in decTrim()
4371 Int d, exp; /* work */ in decTrim()
4447 static Int
4448 decShiftToMost (Unit * uar, Int digits, Int shift) in decShiftToMost()
4452 Int cut; /* odd 0's to add */ in decShiftToMost()
4506 static Int
4507 decShiftToLeast (Unit * uar, Int units, Int shift) in decShiftToLeast()
4510 Int cut, count; /* work */ in decShiftToLeast()
4511 Int quot, rem; /* for division */ in decShiftToLeast()
4579 Int residue = 0; /* rounding accumulator */ in decRoundOperand()
4615 Int * residue, uInt * status) in decCopyFit()
4663 Int len, Int * residue, uInt * status) in decSetCoeff()
4665 Int discard; /* number of digits to discard */ in decSetCoeff()
4671 Int count; /* .. */ in decSetCoeff()
4872 decApplyRound (decNumber * dn, decContext * set, Int residue, uInt * status) in decApplyRound()
4874 Int bump; /* 1 if coefficient needs to be incremented */ in decApplyRound()
5080 decFinish (decNumber * dn, decContext * set, Int * residue, uInt * status) in decFinish()
5121 decFinalize (decNumber * dn, decContext * set, Int * residue, uInt * status) in decFinalize()
5123 Int shift; /* shift needed if clamping */ in decFinalize()
5189 Int emax = set->emax; /* limit value */ in decSetOverflow()
5226 Int count = set->digits; /* nines to add */ in decSetOverflow()
5267 Int * residue, uInt * status) in decSetSubnormal()
5270 Int etiny, adjust; /* .. */ in decSetSubnormal()
5361 static Int
5365 static Int
5369 Int theInt; /* result accumulator */
5371 Int got; /* digits (real or not) processed */
5372 Int ilength = dn->digits + dn->exponent; /* integral length */
5400 Int count = -dn->exponent; /* digits to discard */
5412 Int rem; /* work */
5435 && (theInt / (Int) powers[got - DECDPUN] != *(up - 1)))
5562 static Int
5563 decGetDigits (const Unit * uar, Int len)
5566 Int digits = len * DECDPUN; /* maximum possible digits */
5608 Int cut; /* .. */
5672 decDumpAr (char name, const Unit * ar, Int len)
5674 Int i;
5770 Int ae, d, digits; /* .. */
5771 Int emin, emax; /* .. */
5955 b - b0 - 8, (Int) b0);
5959 b - b0 - 8, (Int) b0, n);