decNumber 205 src/decNumber/decNumber.c static decNumber * decAddOp(decNumber *, const decNumber *, const decNumber *, decNumber 208 src/decNumber/decNumber.c static uInt decCheckMath(const decNumber *, decContext *, uInt *); decNumber 209 src/decNumber/decNumber.c static void decApplyRound(decNumber *, decContext *, Int, uInt *); decNumber 210 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, Flag); decNumber 211 src/decNumber/decNumber.c static decNumber * decCompareOp(decNumber *, const decNumber *, decNumber 212 src/decNumber/decNumber.c const decNumber *, decContext *, decNumber 214 src/decNumber/decNumber.c static void decCopyFit(decNumber *, const decNumber *, decContext *, decNumber 216 src/decNumber/decNumber.c static decNumber * decDecap(decNumber *, Int); decNumber 217 src/decNumber/decNumber.c static decNumber * decDivideOp(decNumber *, const decNumber *, decNumber 218 src/decNumber/decNumber.c const decNumber *, decContext *, Flag, uInt *); decNumber 219 src/decNumber/decNumber.c static decNumber * decExpOp(decNumber *, const decNumber *, decNumber 221 src/decNumber/decNumber.c static void decFinalize(decNumber *, decContext *, Int *, uInt *); decNumber 223 src/decNumber/decNumber.c static Int decGetInt(const decNumber *); decNumber 224 src/decNumber/decNumber.c static decNumber * decLnOp(decNumber *, const decNumber *, decNumber 226 src/decNumber/decNumber.c static decNumber * decMultiplyOp(decNumber *, const decNumber *, decNumber 227 src/decNumber/decNumber.c const decNumber *, decContext *, decNumber 229 src/decNumber/decNumber.c static decNumber * decNaNs(decNumber *, const decNumber *, decNumber 230 src/decNumber/decNumber.c const decNumber *, decContext *, uInt *); decNumber 231 src/decNumber/decNumber.c static decNumber * decQuantizeOp(decNumber *, const decNumber *, decNumber 232 src/decNumber/decNumber.c const decNumber *, decContext *, Flag, decNumber 235 src/decNumber/decNumber.c static void decSetCoeff(decNumber *, decContext *, const Unit *, decNumber 237 src/decNumber/decNumber.c static void decSetMaxValue(decNumber *, decContext *); decNumber 238 src/decNumber/decNumber.c static void decSetOverflow(decNumber *, decContext *, uInt *); decNumber 239 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *, decContext *, Int *, uInt *); decNumber 242 src/decNumber/decNumber.c static void decStatus(decNumber *, uInt, decContext *); decNumber 243 src/decNumber/decNumber.c static void decToString(const decNumber *, char[], Flag); decNumber 244 src/decNumber/decNumber.c static decNumber * decTrim(decNumber *, decContext *, Flag, Flag, Int *); decNumber 253 src/decNumber/decNumber.c static void decFinish(decNumber *, decContext *, Int *, uInt *); decNumber 254 src/decNumber/decNumber.c static decNumber * decRoundOperand(const decNumber *, decContext *, uInt *); decNumber 275 src/decNumber/decNumber.c decNumber * decNumberFromInt32(decNumber *dn, Int in) { decNumber 288 src/decNumber/decNumber.c decNumber * decNumberFromUInt32(decNumber *dn, uInt uin) { decNumber 310 src/decNumber/decNumber.c Int decNumberToInt32(const decNumber *dn, decContext *set) { decNumber 342 src/decNumber/decNumber.c uInt decNumberToUInt32(const decNumber *dn, decContext *set) { decNumber 382 src/decNumber/decNumber.c char * decNumberToString(const decNumber *dn, char *string){ decNumber 387 src/decNumber/decNumber.c char * decNumberToEngString(const decNumber *dn, char *string){ decNumber 412 src/decNumber/decNumber.c decNumber * decNumberFromString(decNumber *dn, const char chars[], decNumber 656 src/decNumber/decNumber.c decNumber * decNumberAbs(decNumber *res, const decNumber *rhs, decNumber 658 src/decNumber/decNumber.c decNumber dzero; // for 0 decNumber 681 src/decNumber/decNumber.c decNumber * decNumberAdd(decNumber *res, const decNumber *lhs, decNumber 682 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 704 src/decNumber/decNumber.c decNumber * decNumberAnd(decNumber *res, const decNumber *lhs, decNumber 705 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 769 src/decNumber/decNumber.c decNumber * decNumberCompare(decNumber *res, const decNumber *lhs, decNumber 770 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 789 src/decNumber/decNumber.c decNumber * decNumberCompareSignal(decNumber *res, const decNumber *lhs, decNumber 790 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 810 src/decNumber/decNumber.c decNumber * decNumberCompareTotal(decNumber *res, const decNumber *lhs, decNumber 811 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 831 src/decNumber/decNumber.c decNumber * decNumberCompareTotalMag(decNumber *res, const decNumber *lhs, decNumber 832 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 835 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+1)];// +1 in case DECBUFFER=0 decNumber 836 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 837 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER+1)]; decNumber 838 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufb, iff allocated decNumber 839 src/decNumber/decNumber.c decNumber *a, *b; // temporary pointers decNumber 845 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); decNumber 847 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 859 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); decNumber 861 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 892 src/decNumber/decNumber.c decNumber * decNumberDivide(decNumber *res, const decNumber *lhs, decNumber 893 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 912 src/decNumber/decNumber.c decNumber * decNumberDivideInteger(decNumber *res, const decNumber *lhs, decNumber 913 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 945 src/decNumber/decNumber.c decNumber * decNumberExp(decNumber *res, const decNumber *rhs, decNumber 949 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 994 src/decNumber/decNumber.c decNumber * decNumberFMA(decNumber *res, const decNumber *lhs, decNumber 995 src/decNumber/decNumber.c const decNumber *rhs, const decNumber *fhs, decNumber 1000 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER*2+1)]; decNumber 1001 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 1002 src/decNumber/decNumber.c decNumber *acc; // accumulator pointer decNumber 1003 src/decNumber/decNumber.c decNumber dzero; // work decNumber 1023 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); decNumber 1025 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 1071 src/decNumber/decNumber.c decNumber * decNumberInvert(decNumber *res, const decNumber *rhs, decNumber 1141 src/decNumber/decNumber.c decNumber * decNumberLn(decNumber *res, const decNumber *rhs, decNumber 1145 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 1200 src/decNumber/decNumber.c decNumber * decNumberLogB(decNumber *res, const decNumber *rhs, decNumber 1216 src/decNumber/decNumber.c decNumber buft[D2N(10)]; // temporary number decNumber 1217 src/decNumber/decNumber.c decNumber *t=buft; // .. decNumber 1258 src/decNumber/decNumber.c decNumber * decNumberLog10(decNumber *res, const decNumber *rhs, decNumber 1267 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+2)]; decNumber 1268 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 1269 src/decNumber/decNumber.c decNumber *a=bufa; // temporary a decNumber 1270 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER+2)]; decNumber 1271 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufb, iff allocated decNumber 1272 src/decNumber/decNumber.c decNumber *b=bufb; // temporary b decNumber 1273 src/decNumber/decNumber.c decNumber bufw[D2N(10)]; // working 2-10 digit number decNumber 1274 src/decNumber/decNumber.c decNumber *w=bufw; // .. decNumber 1276 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 1337 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); decNumber 1339 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 1360 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); decNumber 1362 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 1405 src/decNumber/decNumber.c decNumber * decNumberMax(decNumber *res, const decNumber *lhs, decNumber 1406 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1425 src/decNumber/decNumber.c decNumber * decNumberMaxMag(decNumber *res, const decNumber *lhs, decNumber 1426 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1445 src/decNumber/decNumber.c decNumber * decNumberMin(decNumber *res, const decNumber *lhs, decNumber 1446 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1465 src/decNumber/decNumber.c decNumber * decNumberMinMag(decNumber *res, const decNumber *lhs, decNumber 1466 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1487 src/decNumber/decNumber.c decNumber * decNumberMinus(decNumber *res, const decNumber *rhs, decNumber 1489 src/decNumber/decNumber.c decNumber dzero; decNumber 1510 src/decNumber/decNumber.c decNumber * decNumberNextMinus(decNumber *res, const decNumber *rhs, decNumber 1512 src/decNumber/decNumber.c decNumber dtiny; // constant decNumber 1551 src/decNumber/decNumber.c decNumber * decNumberNextPlus(decNumber *res, const decNumber *rhs, decNumber 1553 src/decNumber/decNumber.c decNumber dtiny; // constant decNumber 1596 src/decNumber/decNumber.c decNumber * decNumberNextToward(decNumber *res, const decNumber *lhs, decNumber 1597 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1598 src/decNumber/decNumber.c decNumber dtiny; // constant decNumber 1661 src/decNumber/decNumber.c decNumber * decNumberOr(decNumber *res, const decNumber *lhs, decNumber 1662 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1728 src/decNumber/decNumber.c decNumber * decNumberPlus(decNumber *res, const decNumber *rhs, decNumber 1730 src/decNumber/decNumber.c decNumber dzero; decNumber 1752 src/decNumber/decNumber.c decNumber * decNumberMultiply(decNumber *res, const decNumber *lhs, decNumber 1753 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1786 src/decNumber/decNumber.c decNumber * decNumberPower(decNumber *res, const decNumber *lhs, decNumber 1787 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 1789 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 1790 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 1792 src/decNumber/decNumber.c decNumber *allocdac=NULL; // -> allocated acc buffer, iff used decNumber 1793 src/decNumber/decNumber.c decNumber *allocinv=NULL; // -> allocated 1/x buffer, iff used decNumber 1809 src/decNumber/decNumber.c decNumber dnOne; // work value 1... decNumber 1811 src/decNumber/decNumber.c decNumber dacbuff[D2N(DECBUFFER+9)]; decNumber 1812 src/decNumber/decNumber.c decNumber *dac=dacbuff; // -> result accumulator decNumber 1814 src/decNumber/decNumber.c decNumber invbuff[D2N(DECBUFFER+9)]; decNumber 1976 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); decNumber 1979 src/decNumber/decNumber.c allocdac=(decNumber *)malloc(needbytes); decNumber 2017 src/decNumber/decNumber.c decNumber *inv=invbuff; // assume use fixed buffer decNumber 2026 src/decNumber/decNumber.c allocinv=(decNumber *)malloc(needbytes); decNumber 2132 src/decNumber/decNumber.c decNumber * decNumberQuantize(decNumber *res, const decNumber *lhs, decNumber 2133 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2152 src/decNumber/decNumber.c decNumber * decNumberNormalize(decNumber *res, const decNumber *rhs, decNumber 2157 src/decNumber/decNumber.c decNumber * decNumberReduce(decNumber *res, const decNumber *rhs, decNumber 2160 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 2217 src/decNumber/decNumber.c decNumber * decNumberRescale(decNumber *res, const decNumber *lhs, decNumber 2218 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2237 src/decNumber/decNumber.c decNumber * decNumberRemainder(decNumber *res, const decNumber *lhs, decNumber 2238 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2257 src/decNumber/decNumber.c decNumber * decNumberRemainderNear(decNumber *res, const decNumber *lhs, decNumber 2258 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2290 src/decNumber/decNumber.c decNumber * decNumberRotate(decNumber *res, const decNumber *lhs, decNumber 2291 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2408 src/decNumber/decNumber.c decNumber * decNumberSameQuantum(decNumber *res, const decNumber *lhs, decNumber 2409 src/decNumber/decNumber.c const decNumber *rhs) { decNumber 2439 src/decNumber/decNumber.c decNumber * decNumberScaleB(decNumber *res, const decNumber *lhs, decNumber 2440 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2502 src/decNumber/decNumber.c decNumber * decNumberShift(decNumber *res, const decNumber *lhs, decNumber 2503 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2627 src/decNumber/decNumber.c decNumber * decNumberSquareRoot(decNumber *res, const decNumber *rhs, decNumber 2630 src/decNumber/decNumber.c decNumber dzero; // used for constant zero decNumber 2642 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rounded rhs allocated decNumber 2645 src/decNumber/decNumber.c decNumber buff[D2N(DECBUFFER+1)]; decNumber 2647 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+2)]; decNumber 2649 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER+2)]; decNumber 2650 src/decNumber/decNumber.c decNumber *allocbuff=NULL; // -> allocated buff, iff allocated decNumber 2651 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 2652 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufb, iff allocated decNumber 2653 src/decNumber/decNumber.c decNumber *f=buff; // reduced fraction decNumber 2654 src/decNumber/decNumber.c decNumber *a=bufa; // approximation to result decNumber 2655 src/decNumber/decNumber.c decNumber *b=bufb; // intermediate result decNumber 2657 src/decNumber/decNumber.c decNumber buft[D2N(3)]; decNumber 2658 src/decNumber/decNumber.c decNumber *t=buft; // up-to-3-digit constant or work decNumber 2716 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); decNumber 2718 src/decNumber/decNumber.c allocbuff=(decNumber *)malloc(needbytes); decNumber 2725 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); decNumber 2727 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 2728 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 2962 src/decNumber/decNumber.c decNumber * decNumberSubtract(decNumber *res, const decNumber *lhs, decNumber 2963 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 2992 src/decNumber/decNumber.c decNumber * decNumberToIntegralExact(decNumber *res, const decNumber *rhs, decNumber 2994 src/decNumber/decNumber.c decNumber dn; decNumber 3018 src/decNumber/decNumber.c decNumber * decNumberToIntegralValue(decNumber *res, const decNumber *rhs, decNumber 3044 src/decNumber/decNumber.c decNumber * decNumberXor(decNumber *res, const decNumber *lhs, decNumber 3045 src/decNumber/decNumber.c const decNumber *rhs, decContext *set) { decNumber 3105 src/decNumber/decNumber.c enum decClass decNumberClass(const decNumber *dn, decContext *set) { decNumber 3158 src/decNumber/decNumber.c decNumber * decNumberCopy(decNumber *dest, const decNumber *src) { decNumber 3194 src/decNumber/decNumber.c decNumber * decNumberCopyAbs(decNumber *res, const decNumber *rhs) { decNumber 3212 src/decNumber/decNumber.c decNumber * decNumberCopyNegate(decNumber *res, const decNumber *rhs) { decNumber 3230 src/decNumber/decNumber.c decNumber * decNumberCopySign(decNumber *res, const decNumber *lhs, decNumber 3231 src/decNumber/decNumber.c const decNumber *rhs) { decNumber 3250 src/decNumber/decNumber.c uByte * decNumberGetBCD(const decNumber *dn, uByte *bcd) { decNumber 3284 src/decNumber/decNumber.c decNumber * decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) { decNumber 3309 src/decNumber/decNumber.c Int decNumberIsNormal(const decNumber *dn, decContext *set) { decNumber 3326 src/decNumber/decNumber.c Int decNumberIsSubnormal(const decNumber *dn, decContext *set) { decNumber 3347 src/decNumber/decNumber.c decNumber * decNumberTrim(decNumber *dn) { decNumber 3372 src/decNumber/decNumber.c decNumber * decNumberZero(decNumber *dn) { decNumber 3398 src/decNumber/decNumber.c static void decToString(const decNumber *dn, char *string, Flag eng) { decNumber 3574 src/decNumber/decNumber.c static decNumber * decAddOp(decNumber *res, const decNumber *lhs, decNumber 3575 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 3578 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 3579 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 3581 src/decNumber/decNumber.c decNumber dtiny; // lhs, adjusted to avoid a huge shift decNumber 3756 src/decNumber/decNumber.c const decNumber *t; decNumber 3963 src/decNumber/decNumber.c static decNumber * decDivideOp(decNumber *res, decNumber 3964 src/decNumber/decNumber.c const decNumber *lhs, const decNumber *rhs, decNumber 3967 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 3968 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 4574 src/decNumber/decNumber.c static decNumber * decMultiplyOp(decNumber *res, const decNumber *lhs, decNumber 4575 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 4631 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // -> allocated buffer, iff allocated decNumber 4632 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // -> allocated buffer, iff allocated decNumber 4657 src/decNumber/decNumber.c const decNumber *hold=lhs; decNumber 4956 src/decNumber/decNumber.c decNumber * decExpOp(decNumber *res, const decNumber *rhs, decNumber 4963 src/decNumber/decNumber.c const decNumber *x=rhs; // (may point to safe copy later) decNumber 4970 src/decNumber/decNumber.c decNumber bufr[D2N(DECBUFFER*2+1)]; decNumber 4971 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // non-NULL if rhs buffer allocated decNumber 4978 src/decNumber/decNumber.c decNumber buft[D2N(DECBUFFER*2+9+1)]; decNumber 4979 src/decNumber/decNumber.c decNumber *allocbuft=NULL; // -> allocated buft, iff allocated decNumber 4980 src/decNumber/decNumber.c decNumber *t=buft; // term decNumber 4982 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER*4+18+1)]; decNumber 4983 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 4984 src/decNumber/decNumber.c decNumber *a=bufa; // accumulator decNumber 4987 src/decNumber/decNumber.c decNumber bufd[D2N(16)]; decNumber 4988 src/decNumber/decNumber.c decNumber *d=bufd; // divisor decNumber 4989 src/decNumber/decNumber.c decNumber numone; // constant 1 decNumber 5084 src/decNumber/decNumber.c decNumber *newrhs=bufr; // assume will fit on stack decNumber 5085 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); decNumber 5087 src/decNumber/decNumber.c allocrhs=(decNumber *)malloc(needbytes); decNumber 5117 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); decNumber 5119 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 5129 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); decNumber 5131 src/decNumber/decNumber.c allocbuft=(decNumber *)malloc(needbytes); decNumber 5301 src/decNumber/decNumber.c decNumber * decLnOp(decNumber *res, const decNumber *rhs, decNumber 5313 src/decNumber/decNumber.c decNumber bufa[D2N(DECBUFFER+12)]; decNumber 5314 src/decNumber/decNumber.c decNumber *allocbufa=NULL; // -> allocated bufa, iff allocated decNumber 5315 src/decNumber/decNumber.c decNumber *a=bufa; // accumulator/work decNumber 5316 src/decNumber/decNumber.c decNumber bufb[D2N(DECBUFFER*2+2)]; decNumber 5317 src/decNumber/decNumber.c decNumber *allocbufb=NULL; // -> allocated bufa, iff allocated decNumber 5318 src/decNumber/decNumber.c decNumber *b=bufb; // adjustment/work decNumber 5320 src/decNumber/decNumber.c decNumber numone; // constant 1 decNumber 5321 src/decNumber/decNumber.c decNumber cmp; // work decNumber 5379 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit); decNumber 5381 src/decNumber/decNumber.c allocbufa=(decNumber *)malloc(needbytes); decNumber 5388 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit); decNumber 5390 src/decNumber/decNumber.c allocbufb=(decNumber *)malloc(needbytes); decNumber 5538 src/decNumber/decNumber.c static decNumber * decQuantizeOp(decNumber *res, const decNumber *lhs, decNumber 5539 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 5542 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 5543 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 5545 src/decNumber/decNumber.c const decNumber *inrhs=rhs; // save original rhs decNumber 5707 src/decNumber/decNumber.c decNumber * decCompareOp(decNumber *res, const decNumber *lhs, decNumber 5708 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 5711 src/decNumber/decNumber.c decNumber *alloclhs=NULL; // non-NULL if rounded lhs allocated decNumber 5712 src/decNumber/decNumber.c decNumber *allocrhs=NULL; // .., rhs decNumber 5818 src/decNumber/decNumber.c const decNumber *choice; decNumber 5873 src/decNumber/decNumber.c static Int decCompare(const decNumber *lhs, const decNumber *rhs, decNumber 5908 src/decNumber/decNumber.c const decNumber *temp=lhs; decNumber 6287 src/decNumber/decNumber.c static decNumber * decTrim(decNumber *dn, decContext *set, Flag all, decNumber 6499 src/decNumber/decNumber.c static decNumber *decRoundOperand(const decNumber *dn, decContext *set, decNumber 6501 src/decNumber/decNumber.c decNumber *res; // result structure decNumber 6507 src/decNumber/decNumber.c res=(decNumber *)malloc(sizeof(decNumber) decNumber 6535 src/decNumber/decNumber.c static void decCopyFit(decNumber *dest, const decNumber *src, decNumber 6581 src/decNumber/decNumber.c static void decSetCoeff(decNumber *dn, decContext *set, const Unit *lsu, decNumber 6762 src/decNumber/decNumber.c static void decApplyRound(decNumber *dn, decContext *set, Int residue, decNumber 6926 src/decNumber/decNumber.c static void decFinish(decNumber *dn, decContext *set, Int *residue, decNumber 6961 src/decNumber/decNumber.c static void decFinalize(decNumber *dn, decContext *set, Int *residue, decNumber 6974 src/decNumber/decNumber.c decNumber nmin; decNumber 7034 src/decNumber/decNumber.c static void decSetOverflow(decNumber *dn, decContext *set, uInt *status) { decNumber 7080 src/decNumber/decNumber.c static void decSetMaxValue(decNumber *dn, decContext *set) { decNumber 7114 src/decNumber/decNumber.c static void decSetSubnormal(decNumber *dn, decContext *set, Int *residue, decNumber 7194 src/decNumber/decNumber.c static uInt decCheckMath(const decNumber *rhs, decContext *set, decNumber 7222 src/decNumber/decNumber.c static Int decGetInt(const decNumber *dn) { decNumber 7311 src/decNumber/decNumber.c static decNumber *decDecap(decNumber *dn, Int drop) { decNumber 7365 src/decNumber/decNumber.c static decNumber * decNaNs(decNumber *res, const decNumber *lhs, decNumber 7366 src/decNumber/decNumber.c const decNumber *rhs, decContext *set, decNumber 7418 src/decNumber/decNumber.c static void decStatus(decNumber *dn, uInt status, decContext *set) { decNumber 101 src/decNumber/decNumber.h decNumber * decNumberFromInt32(decNumber *, int32_t); decNumber 102 src/decNumber/decNumber.h decNumber * decNumberFromUInt32(decNumber *, uint32_t); decNumber 103 src/decNumber/decNumber.h decNumber * decNumberFromString(decNumber *, const char *, decContext *); decNumber 104 src/decNumber/decNumber.h char * decNumberToString(const decNumber *, char *); decNumber 105 src/decNumber/decNumber.h char * decNumberToEngString(const decNumber *, char *); decNumber 106 src/decNumber/decNumber.h uint32_t decNumberToUInt32(const decNumber *, decContext *); decNumber 107 src/decNumber/decNumber.h int32_t decNumberToInt32(const decNumber *, decContext *); decNumber 108 src/decNumber/decNumber.h uint8_t * decNumberGetBCD(const decNumber *, uint8_t *); decNumber 109 src/decNumber/decNumber.h decNumber * decNumberSetBCD(decNumber *, const uint8_t *, uint32_t); decNumber 112 src/decNumber/decNumber.h decNumber * decNumberAbs(decNumber *, const decNumber *, decContext *); decNumber 113 src/decNumber/decNumber.h decNumber * decNumberAdd(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 114 src/decNumber/decNumber.h decNumber * decNumberAnd(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 115 src/decNumber/decNumber.h decNumber * decNumberCompare(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 116 src/decNumber/decNumber.h decNumber * decNumberCompareSignal(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 117 src/decNumber/decNumber.h decNumber * decNumberCompareTotal(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 118 src/decNumber/decNumber.h decNumber * decNumberCompareTotalMag(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 119 src/decNumber/decNumber.h decNumber * decNumberDivide(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 120 src/decNumber/decNumber.h decNumber * decNumberDivideInteger(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 121 src/decNumber/decNumber.h decNumber * decNumberExp(decNumber *, const decNumber *, decContext *); decNumber 122 src/decNumber/decNumber.h decNumber * decNumberFMA(decNumber *, const decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 123 src/decNumber/decNumber.h decNumber * decNumberInvert(decNumber *, const decNumber *, decContext *); decNumber 124 src/decNumber/decNumber.h decNumber * decNumberLn(decNumber *, const decNumber *, decContext *); decNumber 125 src/decNumber/decNumber.h decNumber * decNumberLogB(decNumber *, const decNumber *, decContext *); decNumber 126 src/decNumber/decNumber.h decNumber * decNumberLog10(decNumber *, const decNumber *, decContext *); decNumber 127 src/decNumber/decNumber.h decNumber * decNumberMax(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 128 src/decNumber/decNumber.h decNumber * decNumberMaxMag(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 129 src/decNumber/decNumber.h decNumber * decNumberMin(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 130 src/decNumber/decNumber.h decNumber * decNumberMinMag(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 131 src/decNumber/decNumber.h decNumber * decNumberMinus(decNumber *, const decNumber *, decContext *); decNumber 132 src/decNumber/decNumber.h decNumber * decNumberMultiply(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 133 src/decNumber/decNumber.h decNumber * decNumberNormalize(decNumber *, const decNumber *, decContext *); decNumber 134 src/decNumber/decNumber.h decNumber * decNumberOr(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 135 src/decNumber/decNumber.h decNumber * decNumberPlus(decNumber *, const decNumber *, decContext *); decNumber 136 src/decNumber/decNumber.h decNumber * decNumberPower(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 137 src/decNumber/decNumber.h decNumber * decNumberQuantize(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 138 src/decNumber/decNumber.h decNumber * decNumberReduce(decNumber *, const decNumber *, decContext *); decNumber 139 src/decNumber/decNumber.h decNumber * decNumberRemainder(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 140 src/decNumber/decNumber.h decNumber * decNumberRemainderNear(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 141 src/decNumber/decNumber.h decNumber * decNumberRescale(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 142 src/decNumber/decNumber.h decNumber * decNumberRotate(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 143 src/decNumber/decNumber.h decNumber * decNumberSameQuantum(decNumber *, const decNumber *, const decNumber *); decNumber 144 src/decNumber/decNumber.h decNumber * decNumberScaleB(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 145 src/decNumber/decNumber.h decNumber * decNumberShift(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 146 src/decNumber/decNumber.h decNumber * decNumberSquareRoot(decNumber *, const decNumber *, decContext *); decNumber 147 src/decNumber/decNumber.h decNumber * decNumberSubtract(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 148 src/decNumber/decNumber.h decNumber * decNumberToIntegralExact(decNumber *, const decNumber *, decContext *); decNumber 149 src/decNumber/decNumber.h decNumber * decNumberToIntegralValue(decNumber *, const decNumber *, decContext *); decNumber 150 src/decNumber/decNumber.h decNumber * decNumberXor(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 153 src/decNumber/decNumber.h enum decClass decNumberClass(const decNumber *, decContext *); decNumber 155 src/decNumber/decNumber.h decNumber * decNumberCopy(decNumber *, const decNumber *); decNumber 156 src/decNumber/decNumber.h decNumber * decNumberCopyAbs(decNumber *, const decNumber *); decNumber 157 src/decNumber/decNumber.h decNumber * decNumberCopyNegate(decNumber *, const decNumber *); decNumber 158 src/decNumber/decNumber.h decNumber * decNumberCopySign(decNumber *, const decNumber *, const decNumber *); decNumber 159 src/decNumber/decNumber.h decNumber * decNumberNextMinus(decNumber *, const decNumber *, decContext *); decNumber 160 src/decNumber/decNumber.h decNumber * decNumberNextPlus(decNumber *, const decNumber *, decContext *); decNumber 161 src/decNumber/decNumber.h decNumber * decNumberNextToward(decNumber *, const decNumber *, const decNumber *, decContext *); decNumber 162 src/decNumber/decNumber.h decNumber * decNumberTrim(decNumber *); decNumber 164 src/decNumber/decNumber.h decNumber * decNumberZero(decNumber *); decNumber 167 src/decNumber/decNumber.h int32_t decNumberIsNormal(const decNumber *, decContext *); decNumber 168 src/decNumber/decNumber.h int32_t decNumberIsSubnormal(const decNumber *, decContext *); decNumber 309 src/decNumber/decNumberLocal.h ((((SD2U(d)-1)*sizeof(Unit))+sizeof(decNumber)*2-1)/sizeof(decNumber)) decNumber 52 src/decNumber/decPacked.h const decNumber *); decNumber 53 src/decNumber/decPacked.h decNumber * decPackedToNumber(const uint8_t *, int32_t, decNumber 54 src/decNumber/decPacked.h const int32_t *, decNumber *); decNumber 79 src/decNumber/decimal128.h decimal128 * decimal128FromNumber(decimal128 *, const decNumber *, decNumber 81 src/decNumber/decimal128.h decNumber * decimal128ToNumber(const decimal128 *, decNumber *); decNumber 79 src/decNumber/decimal32.h decimal32 * decimal32FromNumber(decimal32 *, const decNumber *, decNumber 81 src/decNumber/decimal32.h decNumber * decimal32ToNumber(const decimal32 *, decNumber *); decNumber 79 src/decNumber/decimal64.h decimal64 * decimal64FromNumber(decimal64 *, const decNumber *, decNumber 81 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 222 src/dps8/dps8_decimal.c decNumber 288 src/dps8/dps8_decimal.c decNumber 303 src/dps8/dps8_decimal.c decNumber 445 src/dps8/dps8_decimal.c decNumber 448 src/dps8/dps8_decimal.c decNumber 450 src/dps8/dps8_decimal.c decNumber 519 src/dps8/dps8_decimal.c decNumber 551 src/dps8/dps8_decimal.c decNumber 623 src/dps8/dps8_decimal.c decNumber 624 src/dps8/dps8_decimal.c decNumber 715 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 716 src/dps8/dps8_decimal.c decNumber _sf; decNumber 717 src/dps8/dps8_decimal.c decNumber _r2; decNumber 718 src/dps8/dps8_decimal.c decNumber * r2 = & _r2; decNumber 830 src/dps8/dps8_decimal.c int decCompare(decNumber *lhs, decNumber *rhs, decContext *set) decNumber 832 src/dps8/dps8_decimal.c decNumber _cmp, *cmp; decNumber 845 src/dps8/dps8_decimal.c int decCompareMAG(decNumber *lhs, decNumber *rhs, decContext *set) decNumber 847 src/dps8/dps8_decimal.c decNumber _cmpm, *cmpm; decNumber 45 src/dps8/dps8_decimal.h decNumber * decBCD9ToNumber(const word9 *bcd, Int length, const Int scale, decNumber *dn); decNumber 46 src/dps8/dps8_decimal.h char *formatDecimal(uint8_t * out, decContext *set, decNumber *r, int nout, int s, decNumber 52 src/dps8/dps8_decimal.h int decCompareMAG(decNumber *lhs, decNumber *rhs, decContext *set); decNumber 7470 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 7474 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 7482 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 7489 src/dps8/dps8_eis.c decNumber *cmp = decNumberCompare(&_3, op1, op2, &set); // compare signed op1 :: op2 decNumber 7497 src/dps8/dps8_eis.c decNumber *mcmp = decNumberCompare(&_3, op1, op2, &set); // compare signed op1 :: op2 decNumber 7797 src/dps8/dps8_eis.c decNumber _1; decNumber 7801 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber (e->inBuffer, n1, sc1, &_1); decNumber 9664 src/dps8/dps8_eis.c decNumber _1; decNumber 9665 src/dps8/dps8_eis.c decNumber *op1 = decNumberFromString(&_1, tmp+i, &set); decNumber 10076 src/dps8/dps8_eis.c decNumber 10077 src/dps8/dps8_eis.c decNumber 10287 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 10291 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 10299 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 10305 src/dps8/dps8_eis.c decNumber *op3 = decNumberAdd(&_3, op1, op2, &set); decNumber 10325 src/dps8/dps8_eis.c decNumber tmp; decNumber 10668 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 10672 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 10680 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 10686 src/dps8/dps8_eis.c decNumber *op3 = decNumberAdd(&_3, op1, op2, &set); decNumber 10716 src/dps8/dps8_eis.c decNumber tmp; decNumber 10999 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11003 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11011 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11017 src/dps8/dps8_eis.c decNumber *op3 = decNumberSubtract(&_3, op2, op1, &set); decNumber 11037 src/dps8/dps8_eis.c decNumber tmp; decNumber 11340 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11344 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11352 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11358 src/dps8/dps8_eis.c decNumber *op3 = decNumberSubtract(&_3, op2, op1, &set); decNumber 11378 src/dps8/dps8_eis.c decNumber tmp; decNumber 11656 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11660 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11668 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11674 src/dps8/dps8_eis.c decNumber *op3 = decNumberMultiply(&_3, op1, op2, &set); decNumber 11958 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 11962 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 11970 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 11976 src/dps8/dps8_eis.c decNumber *op3 = decNumberMultiply(&_3, op1, op2, &set); decNumber 12147 src/dps8/dps8_eis.c decNumber 12213 src/dps8/dps8_eis.c decNumber 12226 src/dps8/dps8_eis.c decNumber 12271 src/dps8/dps8_eis.c decNumber 12344 src/dps8/dps8_eis.c decNumber 12346 src/dps8/dps8_eis.c decNumber 12361 src/dps8/dps8_eis.c decNumber 12362 src/dps8/dps8_eis.c decNumber 12363 src/dps8/dps8_eis.c decNumber 12418 src/dps8/dps8_eis.c decNumber 12511 src/dps8/dps8_eis.c decNumber 12514 src/dps8/dps8_eis.c decNumber 12516 src/dps8/dps8_eis.c decNumber 12585 src/dps8/dps8_eis.c decNumber 12635 src/dps8/dps8_eis.c decNumber 12677 src/dps8/dps8_eis.c decNumber 12745 src/dps8/dps8_eis.c decNumber 12746 src/dps8/dps8_eis.c decNumber 12998 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 13002 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); // divisor decNumber 13019 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); // dividend decNumber 13058 src/dps8/dps8_eis.c decNumber *op3 = decNumberDivide(&_3, op2, op1, &set); decNumber 13081 src/dps8/dps8_eis.c decNumber _sf; decNumber 13107 src/dps8/dps8_eis.c decNumber _1a; decNumber 13108 src/dps8/dps8_eis.c decNumber _2a; decNumber 13109 src/dps8/dps8_eis.c decNumber _sf; decNumber 13423 src/dps8/dps8_eis.c decNumber _1, _2, _3; decNumber 13427 src/dps8/dps8_eis.c decNumber *op1 = decBCD9ToNumber(e->inBuffer, n1, sc1, &_1); decNumber 13445 src/dps8/dps8_eis.c decNumber *op2 = decBCD9ToNumber(e->inBuffer, n2, sc2, &_2); decNumber 13501 src/dps8/dps8_eis.c decNumber *op3 = decNumberDivide(&_3, op2, op1, &set); decNumber 13524 src/dps8/dps8_eis.c decNumber _sf; decNumber 13550 src/dps8/dps8_eis.c decNumber _1a; decNumber 13551 src/dps8/dps8_eis.c decNumber _2a; decNumber 13552 src/dps8/dps8_eis.c decNumber _sf;