decNumber 220 src/decNumber/decNumber.c static decNumber * decAddOp(decNumber *, const decNumber *, const decNumber *, decNumber 223 src/decNumber/decNumber.c static uInt decCheckMath(const decNumber *, decContext *, uInt *); decNumber 224 src/decNumber/decNumber.c static void decApplyRound(decNumber *, decContext *, Int, uInt *); decNumber 225 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, Flag); decNumber 226 src/decNumber/decNumber.c static decNumber * decCompareOp(decNumber *, const decNumber *, decNumber 227 src/decNumber/decNumber.c const decNumber *, decContext *, decNumber 229 src/decNumber/decNumber.c static void decCopyFit(decNumber *, const decNumber *, decContext *, decNumber 231 src/decNumber/decNumber.c static decNumber * decDecap(decNumber *, Int); decNumber 232 src/decNumber/decNumber.c static decNumber * decDivideOp(decNumber *, const decNumber *, decNumber 233 src/decNumber/decNumber.c const decNumber *, decContext *, Flag, uInt *); decNumber 234 src/decNumber/decNumber.c static decNumber * decExpOp(decNumber *, const decNumber *, decNumber 236 src/decNumber/decNumber.c static void decFinalize(decNumber *, decContext *, Int *, uInt *); decNumber 238 src/decNumber/decNumber.c static Int decGetInt(const decNumber *); decNumber 239 src/decNumber/decNumber.c static decNumber * decLnOp(decNumber *, const decNumber *, decNumber 241 src/decNumber/decNumber.c static decNumber * decMultiplyOp(decNumber *, const decNumber *, decNumber 242 src/decNumber/decNumber.c const decNumber *, decContext *, decNumber 244 src/decNumber/decNumber.c static decNumber * decNaNs(decNumber *, const decNumber *, decNumber 245 src/decNumber/decNumber.c const decNumber *, decContext *, uInt *); decNumber 246 src/decNumber/decNumber.c static decNumber * decQuantizeOp(decNumber *, const decNumber *, decNumber 247 src/decNumber/decNumber.c const decNumber *, decContext *, Flag, decNumber 250 src/decNumber/decNumber.c static void decSetCoeff(decNumber *, decContext *, const Unit *, decNumber 252 src/decNumber/decNumber.c static void decSetMaxValue(decNumber *, decContext *); decNumber 253 src/decNumber/decNumber.c static void decSetOverflow(decNumber *, decContext *, uInt *); decNumber 254 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *, decContext *, Int *, uInt *); decNumber 257 src/decNumber/decNumber.c static void decStatus(decNumber *, uInt, decContext *); decNumber 258 src/decNumber/decNumber.c static void decToString(const decNumber *, char[], Flag); decNumber 259 src/decNumber/decNumber.c static decNumber * decTrim(decNumber *, decContext *, Flag, Flag, Int *); decNumber 268 src/decNumber/decNumber.c static void decFinish(decNumber *, decContext *, Int *, uInt *); decNumber 269 src/decNumber/decNumber.c static decNumber * decRoundOperand(const decNumber *, decContext *, uInt *); decNumber 290 src/decNumber/decNumber.c decNumber * decNumberFromInt32(decNumber *dn, Int in) { decNumber 303 src/decNumber/decNumber.c decNumber * decNumberFromUInt32(decNumber *dn, uInt uin) { decNumber 325 src/decNumber/decNumber.c Int decNumberToInt32(const decNumber *dn, decContext *set) { decNumber 357 src/decNumber/decNumber.c uInt decNumberToUInt32(const decNumber *dn, decContext *set) { decNumber 397 src/decNumber/decNumber.c char * decNumberToString(const decNumber *dn, char *string){ decNumber 402 src/decNumber/decNumber.c char * decNumberToEngString(const decNumber *dn, char *string){ decNumber 427 src/decNumber/decNumber.c decNumber * decNumberFromString(decNumber *dn, const char chars[], decNumber 671 src/decNumber/decNumber.c decNumber * decNumberAbs(decNumber *res, const decNumber *rhs, decNumber 673 src/decNumber/decNumber.c decNumber dzero; // for 0 decNumber 696 src/decNumber/decNumber.c decNumber * decNumberAdd(decNumber *res, const decNumber *lhs, decNumber 697 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 719 src/decNumber/decNumber.c decNumber * decNumberAnd(decNumber *res, const decNumber *lhs, decNumber 720 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 784 src/decNumber/decNumber.c decNumber * decNumberCompare(decNumber *res, const decNumber *lhs, decNumber 785 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 804 src/decNumber/decNumber.c decNumber * decNumberCompareSignal(decNumber *res, const decNumber *lhs, decNumber 805 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 825 src/decNumber/decNumber.c decNumber * decNumberCompareTotal(decNumber *res, const decNumber *lhs, decNumber 826 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 846 src/decNumber/decNumber.c decNumber * decNumberCompareTotalMag(decNumber *res, const decNumber *lhs, decNumber 847 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 850 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+1)];// +1 in case DECBUFFER=0 decNumber 851 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 852 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER+1)]; decNumber 853 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufb, iff allocated decNumber 854 src/decNumber/decNumber.c decNumber *a, *b; // temporary pointers decNumber 860 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); decNumber 862 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 874 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); decNumber 876 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 907 src/decNumber/decNumber.c decNumber * decNumberDivide(decNumber *res, const decNumber *lhs, decNumber 908 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 927 src/decNumber/decNumber.c decNumber * decNumberDivideInteger(decNumber *res, const decNumber *lhs, decNumber 928 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 960 src/decNumber/decNumber.c decNumber * decNumberExp(decNumber *res, const decNumber *rhs, decNumber 964 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 1009 src/decNumber/decNumber.c decNumber * decNumberFMA(decNumber *res, const decNumber *lhs, decNumber 1010 src/decNumber/decNumber.c const decNumber *rhs, const decNumber *fhs, decNumber 1015 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER*2+1)]; decNumber 1016 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 1017 src/decNumber/decNumber.c decNumber *acc; // accumulator pointer decNumber 1018 src/decNumber/decNumber.c decNumber dzero; // work decNumber 1038 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); decNumber 1040 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 1087 src/decNumber/decNumber.c decNumber * decNumberInvert(decNumber *res, const decNumber *rhs, decNumber 1157 src/decNumber/decNumber.c decNumber * decNumberLn(decNumber *res, const decNumber *rhs, decNumber 1161 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 1216 src/decNumber/decNumber.c decNumber * decNumberLogB(decNumber *res, const decNumber *rhs, decNumber 1232 src/decNumber/decNumber.c decNumber buft[D2N(10)]; // temporary number decNumber 1233 src/decNumber/decNumber.c decNumber *t=buft; // .. decNumber 1274 src/decNumber/decNumber.c decNumber * decNumberLog10(decNumber *res, const decNumber *rhs, decNumber 1283 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+2)]; decNumber 1284 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 1285 src/decNumber/decNumber.c decNumber *a=bufa; // temporary a decNumber 1286 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER+2)]; decNumber 1287 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufb, iff allocated decNumber 1288 src/decNumber/decNumber.c decNumber *b=bufb; // temporary b decNumber 1289 src/decNumber/decNumber.c decNumber bufw[D2N(10)]; // working 2-10 digit number decNumber 1290 src/decNumber/decNumber.c decNumber *w=bufw; // .. decNumber 1292 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 1353 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); decNumber 1355 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 1376 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); decNumber 1378 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 1421 src/decNumber/decNumber.c decNumber * decNumberMax(decNumber *res, const decNumber *lhs, decNumber 1422 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1441 src/decNumber/decNumber.c decNumber * decNumberMaxMag(decNumber *res, const decNumber *lhs, decNumber 1442 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1461 src/decNumber/decNumber.c decNumber * decNumberMin(decNumber *res, const decNumber *lhs, decNumber 1462 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1481 src/decNumber/decNumber.c decNumber * decNumberMinMag(decNumber *res, const decNumber *lhs, decNumber 1482 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1503 src/decNumber/decNumber.c decNumber * decNumberMinus(decNumber *res, const decNumber *rhs, decNumber 1505 src/decNumber/decNumber.c decNumber dzero; decNumber 1526 src/decNumber/decNumber.c decNumber * decNumberNextMinus(decNumber *res, const decNumber *rhs, decNumber 1528 src/decNumber/decNumber.c decNumber dtiny; // constant decNumber 1567 src/decNumber/decNumber.c decNumber * decNumberNextPlus(decNumber *res, const decNumber *rhs, decNumber 1569 src/decNumber/decNumber.c decNumber dtiny; // constant decNumber 1612 src/decNumber/decNumber.c decNumber * decNumberNextToward(decNumber *res, const decNumber *lhs, decNumber 1613 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1614 src/decNumber/decNumber.c decNumber dtiny; // constant decNumber 1677 src/decNumber/decNumber.c decNumber * decNumberOr(decNumber *res, const decNumber *lhs, decNumber 1678 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1744 src/decNumber/decNumber.c decNumber * decNumberPlus(decNumber *res, const decNumber *rhs, decNumber 1746 src/decNumber/decNumber.c decNumber dzero; decNumber 1768 src/decNumber/decNumber.c decNumber * decNumberMultiply(decNumber *res, const decNumber *lhs, decNumber 1769 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1802 src/decNumber/decNumber.c decNumber * decNumberPower(decNumber *res, const decNumber *lhs, decNumber 1803 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1805 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 1806 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 1808 src/decNumber/decNumber.c decNumber *allocdac=NULL; // -> allocated acc buffer, iff used decNumber 1809 src/decNumber/decNumber.c decNumber *allocinv=NULL; // -> allocated 1/x buffer, iff used decNumber 1825 src/decNumber/decNumber.c decNumber dnOne; // work value 1... decNumber 1827 src/decNumber/decNumber.c decNumber dacbuff[D2N(DECBUFFER+9)]; decNumber 1828 src/decNumber/decNumber.c decNumber *dac=dacbuff; // -> result accumulator decNumber 1830 src/decNumber/decNumber.c decNumber invbuff[D2N(DECBUFFER+9)]; decNumber 1992 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); decNumber 1995 src/decNumber/decNumber.c allocdac=(decNumber *)malloc(needbytes); decNumber 2033 src/decNumber/decNumber.c decNumber *inv=invbuff; // assume use fixed buffer decNumber 2042 src/decNumber/decNumber.c allocinv=(decNumber *)malloc(needbytes); decNumber 2148 src/decNumber/decNumber.c decNumber * decNumberQuantize(decNumber *res, const decNumber *lhs, decNumber 2149 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2168 src/decNumber/decNumber.c decNumber * decNumberNormalize(decNumber *res, const decNumber *rhs, decNumber 2173 src/decNumber/decNumber.c decNumber * decNumberReduce(decNumber *res, const decNumber *rhs, decNumber 2176 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 2233 src/decNumber/decNumber.c decNumber * decNumberRescale(decNumber *res, const decNumber *lhs, decNumber 2234 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2253 src/decNumber/decNumber.c decNumber * decNumberRemainder(decNumber *res, const decNumber *lhs, decNumber 2254 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2273 src/decNumber/decNumber.c decNumber * decNumberRemainderNear(decNumber *res, const decNumber *lhs, decNumber 2274 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2306 src/decNumber/decNumber.c decNumber * decNumberRotate(decNumber *res, const decNumber *lhs, decNumber 2307 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2424 src/decNumber/decNumber.c decNumber * decNumberSameQuantum(decNumber *res, const decNumber *lhs, decNumber 2425 src/decNumber/decNumber.c const decNumber *rhs) { decNumber 2455 src/decNumber/decNumber.c decNumber * decNumberScaleB(decNumber *res, const decNumber *lhs, decNumber 2456 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2518 src/decNumber/decNumber.c decNumber * decNumberShift(decNumber *res, const decNumber *lhs, decNumber 2519 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2643 src/decNumber/decNumber.c decNumber * decNumberSquareRoot(decNumber *res, const decNumber *rhs, decNumber 2646 src/decNumber/decNumber.c decNumber dzero; // used for constant zero decNumber 2658 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 2661 src/decNumber/decNumber.c decNumber buff[D2N(DECBUFFER+1)]; decNumber 2663 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+2)]; decNumber 2665 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER+2)]; decNumber 2666 src/decNumber/decNumber.c decNumber *allocbuff=NULL; // -> allocated buff, iff allocated decNumber 2667 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 2668 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufb, iff allocated decNumber 2669 src/decNumber/decNumber.c decNumber *f=buff; // reduced fraction decNumber 2670 src/decNumber/decNumber.c decNumber *a=bufa; // approximation to result decNumber 2671 src/decNumber/decNumber.c decNumber *b=bufb; // intermediate result decNumber 2673 src/decNumber/decNumber.c decNumber buft[D2N(3)]; decNumber 2674 src/decNumber/decNumber.c decNumber *t=buft; // up-to-3-digit constant or work decNumber 2732 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); decNumber 2734 src/decNumber/decNumber.c allocbuff=(decNumber *)malloc(needbytes); decNumber 2741 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); decNumber 2743 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 2744 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 2978 src/decNumber/decNumber.c decNumber * decNumberSubtract(decNumber *res, const decNumber *lhs, decNumber 2979 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 3008 src/decNumber/decNumber.c decNumber * decNumberToIntegralExact(decNumber *res, const decNumber *rhs, decNumber 3010 src/decNumber/decNumber.c decNumber dn; decNumber 3034 src/decNumber/decNumber.c decNumber * decNumberToIntegralValue(decNumber *res, const decNumber *rhs, decNumber 3060 src/decNumber/decNumber.c decNumber * decNumberXor(decNumber *res, const decNumber *lhs, decNumber 3061 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 3121 src/decNumber/decNumber.c enum decClass decNumberClass(const decNumber *dn, decContext *set) { decNumber 3174 src/decNumber/decNumber.c decNumber * decNumberCopy(decNumber *dest, const decNumber *src) { decNumber 3210 src/decNumber/decNumber.c decNumber * decNumberCopyAbs(decNumber *res, const decNumber *rhs) { decNumber 3228 src/decNumber/decNumber.c decNumber * decNumberCopyNegate(decNumber *res, const decNumber *rhs) { decNumber 3246 src/decNumber/decNumber.c decNumber * decNumberCopySign(decNumber *res, const decNumber *lhs, decNumber 3247 src/decNumber/decNumber.c const decNumber *rhs) { decNumber 3266 src/decNumber/decNumber.c uByte * decNumberGetBCD(const decNumber *dn, uByte *bcd) { decNumber 3300 src/decNumber/decNumber.c decNumber * decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) { decNumber 3325 src/decNumber/decNumber.c Int decNumberIsNormal(const decNumber *dn, decContext *set) { decNumber 3342 src/decNumber/decNumber.c Int decNumberIsSubnormal(const decNumber *dn, decContext *set) { decNumber 3363 src/decNumber/decNumber.c decNumber * decNumberTrim(decNumber *dn) { decNumber 3388 src/decNumber/decNumber.c decNumber * decNumberZero(decNumber *dn) { decNumber 3415 src/decNumber/decNumber.c static void decToString(const decNumber *dn, char *string, Flag eng) { decNumber 3591 src/decNumber/decNumber.c static decNumber * decAddOp(decNumber *res, const decNumber *lhs, decNumber 3592 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 3595 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 3596 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 3598 src/decNumber/decNumber.c decNumber dtiny; // lhs, adjusted to avoid a huge shift decNumber 3773 src/decNumber/decNumber.c const decNumber *t; decNumber 3981 src/decNumber/decNumber.c static decNumber * decDivideOp(decNumber *res, decNumber 3982 src/decNumber/decNumber.c const decNumber *lhs, const decNumber *rhs, decNumber 3985 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 3986 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 4594 src/decNumber/decNumber.c static decNumber * decMultiplyOp(decNumber *res, const decNumber *lhs, decNumber 4595 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 4651 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // -> allocated buffer, iff allocated decNumber 4652 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // -> allocated buffer, iff allocated decNumber 4677 src/decNumber/decNumber.c const decNumber *hold=lhs; decNumber 4976 src/decNumber/decNumber.c decNumber * decExpOp(decNumber *res, const decNumber *rhs, decNumber 4983 src/decNumber/decNumber.c const decNumber *x=rhs; // (may point to safe copy later) decNumber 4990 src/decNumber/decNumber.c decNumber bufr[D2N(DECBUFFER*2+1)]; decNumber 4991 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rhs buffer allocated decNumber 4998 src/decNumber/decNumber.c decNumber buft[D2N(DECBUFFER*2+9+1)]; decNumber 4999 src/decNumber/decNumber.c decNumber *allocbuft=NULL; // -> allocated buft, iff allocated decNumber 5000 src/decNumber/decNumber.c decNumber *t=buft; // term decNumber 5002 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER*4+18+1)]; decNumber 5003 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 5004 src/decNumber/decNumber.c decNumber *a=bufa; // accumulator decNumber 5007 src/decNumber/decNumber.c decNumber bufd[D2N(16)]; decNumber 5008 src/decNumber/decNumber.c decNumber *d=bufd; // divisor decNumber 5009 src/decNumber/decNumber.c decNumber numone; // constant 1 decNumber 5104 src/decNumber/decNumber.c decNumber *newrhs=bufr; // assume will fit on stack decNumber 5105 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); decNumber 5107 src/decNumber/decNumber.c allocrhs=(decNumber *)malloc(needbytes); decNumber 5137 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); decNumber 5139 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 5149 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); decNumber 5151 src/decNumber/decNumber.c allocbuft=(decNumber *)malloc(needbytes); decNumber 5321 src/decNumber/decNumber.c decNumber * decLnOp(decNumber *res, const decNumber *rhs, decNumber 5333 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+12)]; decNumber 5334 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 5335 src/decNumber/decNumber.c decNumber *a=bufa; // accumulator/work decNumber 5336 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER*2+2)]; decNumber 5337 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufa, iff allocated decNumber 5338 src/decNumber/decNumber.c decNumber *b=bufb; // adjustment/work decNumber 5340 src/decNumber/decNumber.c decNumber numone; // constant 1 decNumber 5341 src/decNumber/decNumber.c decNumber cmp; // work decNumber 5399 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit); decNumber 5401 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 5408 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit); decNumber 5410 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 5558 src/decNumber/decNumber.c static decNumber * decQuantizeOp(decNumber *res, const decNumber *lhs, decNumber 5559 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 5562 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 5563 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 5565 src/decNumber/decNumber.c const decNumber *inrhs=rhs; // save original rhs decNumber 5727 src/decNumber/decNumber.c decNumber * decCompareOp(decNumber *res, const decNumber *lhs, decNumber 5728 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 5731 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 5732 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 5838 src/decNumber/decNumber.c const decNumber *choice; decNumber 5893 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, decNumber 5928 src/decNumber/decNumber.c const decNumber *temp=lhs; decNumber 6307 src/decNumber/decNumber.c static decNumber * decTrim(decNumber *dn, decContext *set, Flag all, decNumber 6519 src/decNumber/decNumber.c static decNumber *decRoundOperand(const decNumber *dn, decContext *set, decNumber 6521 src/decNumber/decNumber.c decNumber *res; // result structure decNumber 6527 src/decNumber/decNumber.c res=(decNumber *)malloc(sizeof(decNumber) decNumber 6555 src/decNumber/decNumber.c static void decCopyFit(decNumber *dest, const decNumber *src, decNumber 6601 src/decNumber/decNumber.c static void decSetCoeff(decNumber *dn, decContext *set, const Unit *lsu, decNumber 6782 src/decNumber/decNumber.c static void decApplyRound(decNumber *dn, decContext *set, Int residue, decNumber 6948 src/decNumber/decNumber.c static void decFinish(decNumber *dn, decContext *set, Int *residue, decNumber 6983 src/decNumber/decNumber.c static void decFinalize(decNumber *dn, decContext *set, Int *residue, decNumber 6996 src/decNumber/decNumber.c decNumber nmin; decNumber 7056 src/decNumber/decNumber.c static void decSetOverflow(decNumber *dn, decContext *set, uInt *status) { decNumber 7102 src/decNumber/decNumber.c static void decSetMaxValue(decNumber *dn, decContext *set) { decNumber 7136 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *dn, decContext *set, Int *residue, decNumber 7216 src/decNumber/decNumber.c static uInt decCheckMath(const decNumber *rhs, decContext *set, decNumber 7244 src/decNumber/decNumber.c static Int decGetInt(const decNumber *dn) { decNumber 7333 src/decNumber/decNumber.c static decNumber *decDecap(decNumber *dn, Int drop) { decNumber 7387 src/decNumber/decNumber.c static decNumber * decNaNs(decNumber *res, const decNumber *lhs, decNumber 7388 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 7440 src/decNumber/decNumber.c static void decStatus(decNumber *dn, uInt status, decContext *set) { decNumber 102 src/decNumber/decNumber.h decNumber * decNumberFromInt32(decNumber *, int32_t); decNumber 103 src/decNumber/decNumber.h decNumber * decNumberFromUInt32(decNumber *, uint32_t); decNumber 104 src/decNumber/decNumber.h decNumber * decNumberFromString(decNumber *, const char *, decContext *); decNumber 105 src/decNumber/decNumber.h char * decNumberToString(const decNumber *, char *); decNumber 106 src/decNumber/decNumber.h char * decNumberToEngString(const decNumber *, char *); decNumber 107 src/decNumber/decNumber.h uint32_t decNumberToUInt32(const decNumber *, decContext *); decNumber 108 src/decNumber/decNumber.h int32_t decNumberToInt32(const decNumber *, decContext *); decNumber 109 src/decNumber/decNumber.h uint8_t * decNumberGetBCD(const decNumber *, uint8_t *); decNumber 110 src/decNumber/decNumber.h decNumber * decNumberSetBCD(decNumber *, const uint8_t *, uint32_t); decNumber 113 src/decNumber/decNumber.h decNumber * decNumberAbs(decNumber *, const decNumber *, decContext *); decNumber 114 src/decNumber/decNumber.h decNumber * decNumberAdd(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 115 src/decNumber/decNumber.h decNumber * decNumberAnd(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 116 src/decNumber/decNumber.h decNumber * decNumberCompare(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 117 src/decNumber/decNumber.h decNumber * decNumberCompareSignal(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 118 src/decNumber/decNumber.h decNumber * decNumberCompareTotal(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 119 src/decNumber/decNumber.h decNumber * decNumberCompareTotalMag(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 120 src/decNumber/decNumber.h decNumber * decNumberDivide(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 121 src/decNumber/decNumber.h decNumber * decNumberDivideInteger(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 122 src/decNumber/decNumber.h decNumber * decNumberExp(decNumber *, const decNumber *, decContext *); decNumber 123 src/decNumber/decNumber.h decNumber * decNumberFMA(decNumber *, const decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 124 src/decNumber/decNumber.h decNumber * decNumberInvert(decNumber *, const decNumber *, decContext *); decNumber 125 src/decNumber/decNumber.h decNumber * decNumberLn(decNumber *, const decNumber *, decContext *); decNumber 126 src/decNumber/decNumber.h decNumber * decNumberLogB(decNumber *, const decNumber *, decContext *); decNumber 127 src/decNumber/decNumber.h decNumber * decNumberLog10(decNumber *, const decNumber *, decContext *); decNumber 128 src/decNumber/decNumber.h decNumber * decNumberMax(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 129 src/decNumber/decNumber.h decNumber * decNumberMaxMag(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 130 src/decNumber/decNumber.h decNumber * decNumberMin(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 131 src/decNumber/decNumber.h decNumber * decNumberMinMag(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 132 src/decNumber/decNumber.h decNumber * decNumberMinus(decNumber *, const decNumber *, decContext *); decNumber 133 src/decNumber/decNumber.h decNumber * decNumberMultiply(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 134 src/decNumber/decNumber.h decNumber * decNumberNormalize(decNumber *, const decNumber *, decContext *); decNumber 135 src/decNumber/decNumber.h decNumber * decNumberOr(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 136 src/decNumber/decNumber.h decNumber * decNumberPlus(decNumber *, const decNumber *, decContext *); decNumber 137 src/decNumber/decNumber.h decNumber * decNumberPower(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 138 src/decNumber/decNumber.h decNumber * decNumberQuantize(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 139 src/decNumber/decNumber.h decNumber * decNumberReduce(decNumber *, const decNumber *, decContext *); decNumber 140 src/decNumber/decNumber.h decNumber * decNumberRemainder(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 141 src/decNumber/decNumber.h decNumber * decNumberRemainderNear(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 142 src/decNumber/decNumber.h decNumber * decNumberRescale(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 143 src/decNumber/decNumber.h decNumber * decNumberRotate(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 144 src/decNumber/decNumber.h decNumber * decNumberSameQuantum(decNumber *, const decNumber *, const decNumber *); decNumber 145 src/decNumber/decNumber.h decNumber * decNumberScaleB(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 146 src/decNumber/decNumber.h decNumber * decNumberShift(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 147 src/decNumber/decNumber.h decNumber * decNumberSquareRoot(decNumber *, const decNumber *, decContext *); decNumber 148 src/decNumber/decNumber.h decNumber * decNumberSubtract(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 149 src/decNumber/decNumber.h decNumber * decNumberToIntegralExact(decNumber *, const decNumber *, decContext *); decNumber 150 src/decNumber/decNumber.h decNumber * decNumberToIntegralValue(decNumber *, const decNumber *, decContext *); decNumber 151 src/decNumber/decNumber.h decNumber * decNumberXor(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 154 src/decNumber/decNumber.h enum decClass decNumberClass(const decNumber *, decContext *); decNumber 156 src/decNumber/decNumber.h decNumber * decNumberCopy(decNumber *, const decNumber *); decNumber 157 src/decNumber/decNumber.h decNumber * decNumberCopyAbs(decNumber *, const decNumber *); decNumber 158 src/decNumber/decNumber.h decNumber * decNumberCopyNegate(decNumber *, const decNumber *); decNumber 159 src/decNumber/decNumber.h decNumber * decNumberCopySign(decNumber *, const decNumber *, const decNumber *); decNumber 160 src/decNumber/decNumber.h decNumber * decNumberNextMinus(decNumber *, const decNumber *, decContext *); decNumber 161 src/decNumber/decNumber.h decNumber * decNumberNextPlus(decNumber *, const decNumber *, decContext *); decNumber 162 src/decNumber/decNumber.h decNumber * decNumberNextToward(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 163 src/decNumber/decNumber.h decNumber * decNumberTrim(decNumber *); decNumber 165 src/decNumber/decNumber.h decNumber * decNumberZero(decNumber *); decNumber 168 src/decNumber/decNumber.h int32_t decNumberIsNormal(const decNumber *, decContext *); decNumber 169 src/decNumber/decNumber.h int32_t decNumberIsSubnormal(const decNumber *, decContext *); decNumber 307 src/decNumber/decNumberLocal.h ((((SD2U(d)-1)*sizeof(Unit))+sizeof(decNumber)*2-1)/sizeof(decNumber)) decNumber 51 src/decNumber/decPacked.h const decNumber *); decNumber 52 src/decNumber/decPacked.h decNumber * decPackedToNumber(const uint8_t *, int32_t, decNumber 53 src/decNumber/decPacked.h const int32_t *, decNumber *); decNumber 78 src/decNumber/decimal128.h decimal128 * decimal128FromNumber(decimal128 *, const decNumber *, decNumber 80 src/decNumber/decimal128.h decNumber * decimal128ToNumber(const decimal128 *, decNumber *); decNumber 78 src/decNumber/decimal32.h decimal32 * decimal32FromNumber(decimal32 *, const decNumber *, decNumber 80 src/decNumber/decimal32.h decNumber * decimal32ToNumber(const decimal32 *, decNumber *); decNumber 78 src/decNumber/decimal64.h decimal64 * decimal64FromNumber(decimal64 *, const decNumber *, decNumber 80 src/decNumber/decimal64.h decNumber * decimal64ToNumber(const decimal64 *, decNumber *); decNumber 97 src/dps8/dps8_decimal.c decNumber * decBCD9ToNumber(const word9 *bcd, Int length, const Int scale, decNumber *dn) decNumber 220 src/dps8/dps8_decimal.c decNumber 287 src/dps8/dps8_decimal.c decNumber 302 src/dps8/dps8_decimal.c decNumber 437 src/dps8/dps8_decimal.c decNumber 440 src/dps8/dps8_decimal.c decNumber 442 src/dps8/dps8_decimal.c decNumber 508 src/dps8/dps8_decimal.c decNumber 540 src/dps8/dps8_decimal.c decNumber 613 src/dps8/dps8_decimal.c decNumber 614 src/dps8/dps8_decimal.c decNumber 705 src/dps8/dps8_decimal.c char *formatDecimal (uint8_t * out, decContext *set, decNumber *r, int nout, int s, int sf, bool R, bool *OVR, bool *TRUNC) { decNumber 706 src/dps8/dps8_decimal.c decNumber _sf; decNumber 707 src/dps8/dps8_decimal.c decNumber _r2; decNumber 708 src/dps8/dps8_decimal.c decNumber * r2 = & _r2; decNumber 822 src/dps8/dps8_decimal.c int decCompare(decNumber *lhs, decNumber *rhs, decContext *set) decNumber 824 src/dps8/dps8_decimal.c decNumber _cmp, *cmp; decNumber 837 src/dps8/dps8_decimal.c int decCompareMAG(decNumber *lhs, decNumber *rhs, decContext *set) decNumber 839 src/dps8/dps8_decimal.c decNumber _cmpm, *cmpm; decNumber 48 src/dps8/dps8_decimal.h decNumber * decBCD9ToNumber(const word9 *bcd, Int length, const Int scale, decNumber *dn); decNumber 49 src/dps8/dps8_decimal.h char *formatDecimal(uint8_t * out, decContext *set, decNumber *r, int nout, int s, decNumber 55 src/dps8/dps8_decimal.h int decCompareMAG(decNumber *lhs, decNumber *rhs, decContext *set); decNumber 7414 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 7418 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 7426 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 7433 src/dps8/dps8_eis.c decNumber *cmp = decNumberCompare(&_3, op1, op2, &set); // compare signed op1 :: op2 decNumber 7441 src/dps8/dps8_eis.c decNumber *mcmp = decNumberCompare(&_3, op1, op2, &set); // compare signed op1 :: op2 decNumber 7742 src/dps8/dps8_eis.c decNumber _1; decNumber 7746 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber (e->inBuffer, n1, sc1, &_1); decNumber 9612 src/dps8/dps8_eis.c decNumber _1; decNumber 9613 src/dps8/dps8_eis.c decNumber *op1 = decNumberFromString(&_1, tmp+i, &set); decNumber 10014 src/dps8/dps8_eis.c decNumber 10015 src/dps8/dps8_eis.c decNumber 10224 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 10228 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 10236 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 10242 src/dps8/dps8_eis.c decNumber *op3 = decNumberAdd(&_3, op1, op2, &set); decNumber 10263 src/dps8/dps8_eis.c decNumber tmp; decNumber 10595 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 10599 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 10607 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 10613 src/dps8/dps8_eis.c decNumber *op3 = decNumberAdd(&_3, op1, op2, &set); decNumber 10644 src/dps8/dps8_eis.c decNumber tmp; decNumber 10917 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 10921 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 10929 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 10935 src/dps8/dps8_eis.c decNumber *op3 = decNumberSubtract(&_3, op2, op1, &set); decNumber 10956 src/dps8/dps8_eis.c decNumber tmp; decNumber 11249 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11253 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11261 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11267 src/dps8/dps8_eis.c decNumber *op3 = decNumberSubtract(&_3, op2, op1, &set); decNumber 11288 src/dps8/dps8_eis.c decNumber tmp; decNumber 11556 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11560 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11568 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11574 src/dps8/dps8_eis.c decNumber *op3 = decNumberMultiply(&_3, op1, op2, &set); decNumber 11848 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11852 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11860 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11866 src/dps8/dps8_eis.c decNumber *op3 = decNumberMultiply(&_3, op1, op2, &set); decNumber 12029 src/dps8/dps8_eis.c decNumber 12096 src/dps8/dps8_eis.c decNumber 12109 src/dps8/dps8_eis.c decNumber 12154 src/dps8/dps8_eis.c decNumber 12227 src/dps8/dps8_eis.c decNumber 12229 src/dps8/dps8_eis.c decNumber 12244 src/dps8/dps8_eis.c decNumber 12245 src/dps8/dps8_eis.c decNumber 12246 src/dps8/dps8_eis.c decNumber 12303 src/dps8/dps8_eis.c decNumber 12396 src/dps8/dps8_eis.c decNumber 12399 src/dps8/dps8_eis.c decNumber 12401 src/dps8/dps8_eis.c decNumber 12468 src/dps8/dps8_eis.c decNumber 12518 src/dps8/dps8_eis.c decNumber 12560 src/dps8/dps8_eis.c decNumber 12629 src/dps8/dps8_eis.c decNumber 12630 src/dps8/dps8_eis.c decNumber 12879 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 12883 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); // divisor decNumber 12900 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); // dividend decNumber 12937 src/dps8/dps8_eis.c decNumber *op3 = decNumberDivide(&_3, op2, op1, &set); decNumber 12960 src/dps8/dps8_eis.c decNumber _sf; decNumber 12985 src/dps8/dps8_eis.c decNumber _1a; decNumber 12986 src/dps8/dps8_eis.c decNumber _2a; decNumber 12987 src/dps8/dps8_eis.c decNumber _sf; decNumber 13290 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 13294 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 13312 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 13365 src/dps8/dps8_eis.c decNumber *op3 = decNumberDivide(&_3, op2, op1, &set); decNumber 13388 src/dps8/dps8_eis.c decNumber _sf; decNumber 13413 src/dps8/dps8_eis.c decNumber _1a; decNumber 13414 src/dps8/dps8_eis.c decNumber _2a; decNumber 13415 src/dps8/dps8_eis.c decNumber _sf;