• Home
  • Raw
  • Download

Lines Matching refs:decNumber

244     #error decNumber.c: DECUSE64 must be 1 when DECDPUN>4
251 static decNumber * decAddOp(decNumber *, const decNumber *, const decNumber *,
254 static uInt decCheckMath(const decNumber *, decContext *, uInt *);
255 static void decApplyRound(decNumber *, decContext *, Int, uInt *);
256 static Int decCompare(const decNumber *lhs, const decNumber *rhs, Flag);
257 static decNumber * decCompareOp(decNumber *, const decNumber *,
258 const decNumber *, decContext *,
260 static void decCopyFit(decNumber *, const decNumber *, decContext *,
262 static decNumber * decDecap(decNumber *, Int);
263 static decNumber * decDivideOp(decNumber *, const decNumber *,
264 const decNumber *, decContext *, Flag, uInt *);
265 static decNumber * decExpOp(decNumber *, const decNumber *,
267 static void decFinalize(decNumber *, decContext *, Int *, uInt *);
269 static Int decGetInt(const decNumber *);
270 static decNumber * decLnOp(decNumber *, const decNumber *,
272 static decNumber * decMultiplyOp(decNumber *, const decNumber *,
273 const decNumber *, decContext *,
275 static decNumber * decNaNs(decNumber *, const decNumber *,
276 const decNumber *, decContext *, uInt *);
277 static decNumber * decQuantizeOp(decNumber *, const decNumber *,
278 const decNumber *, decContext *, Flag,
281 static void decSetCoeff(decNumber *, decContext *, const Unit *,
283 static void decSetMaxValue(decNumber *, decContext *);
284 static void decSetOverflow(decNumber *, decContext *, uInt *);
285 static void decSetSubnormal(decNumber *, decContext *, Int *, uInt *);
288 static void decStatus(decNumber *, uInt, decContext *);
289 static void decToString(const decNumber *, char[], Flag);
290 static decNumber * decTrim(decNumber *, decContext *, Flag, Flag, Int *);
299 static void decFinish(decNumber *, decContext *, Int *, uInt *);
300 static decNumber * decRoundOperand(const decNumber *, decContext *, uInt *);
340 #define DECUNRESU ((decNumber *)(void *)0xffffffff)
341 #define DECUNUSED ((const decNumber *)(void *)0xffffffff)
343 static Flag decCheckOperands(decNumber *, const decNumber *,
344 const decNumber *, decContext *);
345 static Flag decCheckNumber(const decNumber *);
346 static void decCheckInexact(const decNumber *, decContext *);
351 void decNumberShow(const decNumber *); /* displays the components of a number */
368 U_CAPI decNumber * U_EXPORT2 uprv_decNumberFromInt32(decNumber *dn, Int in) { in uprv_decNumberFromInt32()
381 U_CAPI decNumber * U_EXPORT2 uprv_decNumberFromUInt32(decNumber *dn, uInt uin) { in uprv_decNumberFromUInt32()
403 U_CAPI Int U_EXPORT2 uprv_decNumberToInt32(const decNumber *dn, decContext *set) { in uprv_decNumberToInt32()
439 U_CAPI uInt U_EXPORT2 uprv_decNumberToUInt32(const decNumber *dn, decContext *set) { in uprv_decNumberToUInt32()
482 U_CAPI char * U_EXPORT2 uprv_decNumberToString(const decNumber *dn, char *string){ in uprv_decNumberToString()
487 U_CAPI char * U_EXPORT2 uprv_decNumberToEngString(const decNumber *dn, char *string){ in uprv_decNumberToEngString()
512 U_CAPI decNumber * U_EXPORT2 uprv_decNumberFromString(decNumber *dn, const char chars[], in uprv_decNumberFromString()
763 U_CAPI decNumber * U_EXPORT2 uprv_decNumberAbs(decNumber *res, const decNumber *rhs, in uprv_decNumberAbs()
765 decNumber dzero; /* for 0 */ in uprv_decNumberAbs()
795 U_CAPI decNumber * U_EXPORT2 uprv_decNumberAdd(decNumber *res, const decNumber *lhs, in uprv_decNumberAdd()
796 const decNumber *rhs, decContext *set) { in uprv_decNumberAdd()
821 U_CAPI decNumber * U_EXPORT2 uprv_decNumberAnd(decNumber *res, const decNumber *lhs, in uprv_decNumberAnd()
822 const decNumber *rhs, decContext *set) { in uprv_decNumberAnd()
889 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCompare(decNumber *res, const decNumber *lhs, in uprv_decNumberCompare()
890 const decNumber *rhs, decContext *set) { in uprv_decNumberCompare()
909 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCompareSignal(decNumber *res, const decNumber *lhs, in uprv_decNumberCompareSignal()
910 const decNumber *rhs, decContext *set) { in uprv_decNumberCompareSignal()
930 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCompareTotal(decNumber *res, const decNumber *lhs, in uprv_decNumberCompareTotal()
931 const decNumber *rhs, decContext *set) { in uprv_decNumberCompareTotal()
951 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCompareTotalMag(decNumber *res, const decNumber *lhs, in uprv_decNumberCompareTotalMag()
952 const decNumber *rhs, decContext *set) { in uprv_decNumberCompareTotalMag()
955 decNumber bufa[D2N(DECBUFFER+1)];/* +1 in case DECBUFFER=0 */ in uprv_decNumberCompareTotalMag()
956 decNumber *allocbufa=NULL; /* -> allocated bufa, iff allocated */ in uprv_decNumberCompareTotalMag()
957 decNumber bufb[D2N(DECBUFFER+1)]; in uprv_decNumberCompareTotalMag()
958 decNumber *allocbufb=NULL; /* -> allocated bufb, iff allocated */ in uprv_decNumberCompareTotalMag()
959 decNumber *a, *b; /* temporary pointers */ in uprv_decNumberCompareTotalMag()
969 needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); in uprv_decNumberCompareTotalMag()
971 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberCompareTotalMag()
983 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in uprv_decNumberCompareTotalMag()
985 allocbufb=(decNumber *)malloc(needbytes); in uprv_decNumberCompareTotalMag()
1016 U_CAPI decNumber * U_EXPORT2 uprv_decNumberDivide(decNumber *res, const decNumber *lhs, in uprv_decNumberDivide()
1017 const decNumber *rhs, decContext *set) { in uprv_decNumberDivide()
1039 U_CAPI decNumber * U_EXPORT2 uprv_decNumberDivideInteger(decNumber *res, const decNumber *lhs, in uprv_decNumberDivideInteger()
1040 const decNumber *rhs, decContext *set) { in uprv_decNumberDivideInteger()
1072 U_CAPI decNumber * U_EXPORT2 uprv_decNumberExp(decNumber *res, const decNumber *rhs, in uprv_decNumberExp()
1076 decNumber *allocrhs=NULL; /* non-NULL if rounded rhs allocated */ in uprv_decNumberExp()
1128 U_CAPI decNumber * U_EXPORT2 uprv_decNumberFMA(decNumber *res, const decNumber *lhs, in uprv_decNumberFMA()
1129 const decNumber *rhs, const decNumber *fhs, in uprv_decNumberFMA()
1134 decNumber bufa[D2N(DECBUFFER*2+1)]; in uprv_decNumberFMA()
1135 decNumber *allocbufa=NULL; /* -> allocated bufa, iff allocated */ in uprv_decNumberFMA()
1136 decNumber *acc; /* accumulator pointer */ in uprv_decNumberFMA()
1137 decNumber dzero; /* work */ in uprv_decNumberFMA()
1162 needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); in uprv_decNumberFMA()
1164 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberFMA()
1219 U_CAPI decNumber * U_EXPORT2 uprv_decNumberInvert(decNumber *res, const decNumber *rhs, in uprv_decNumberInvert()
1292 U_CAPI decNumber * U_EXPORT2 uprv_decNumberLn(decNumber *res, const decNumber *rhs, in uprv_decNumberLn()
1296 decNumber *allocrhs=NULL; /* non-NULL if rounded rhs allocated */ in uprv_decNumberLn()
1358 U_CAPI decNumber * U_EXPORT2 uprv_decNumberLogB(decNumber *res, const decNumber *rhs, in uprv_decNumberLogB()
1418 U_CAPI decNumber * U_EXPORT2 uprv_decNumberLog10(decNumber *res, const decNumber *rhs, in uprv_decNumberLog10()
1427 decNumber bufa[D2N(DECBUFFER+2)]; in uprv_decNumberLog10()
1428 decNumber *allocbufa=NULL; /* -> allocated bufa, iff allocated */ in uprv_decNumberLog10()
1429 decNumber *a=bufa; /* temporary a */ in uprv_decNumberLog10()
1430 decNumber bufb[D2N(DECBUFFER+2)]; in uprv_decNumberLog10()
1431 decNumber *allocbufb=NULL; /* -> allocated bufb, iff allocated */ in uprv_decNumberLog10()
1432 decNumber *b=bufb; /* temporary b */ in uprv_decNumberLog10()
1433 decNumber bufw[D2N(10)]; /* working 2-10 digit number */ in uprv_decNumberLog10()
1434 decNumber *w=bufw; /* .. */ in uprv_decNumberLog10()
1436 decNumber *allocrhs=NULL; /* non-NULL if rounded rhs allocated */ in uprv_decNumberLog10()
1495 needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); in uprv_decNumberLog10()
1497 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberLog10()
1518 needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); in uprv_decNumberLog10()
1520 allocbufb=(decNumber *)malloc(needbytes); in uprv_decNumberLog10()
1569 U_CAPI decNumber * U_EXPORT2 uprv_decNumberMax(decNumber *res, const decNumber *lhs, in uprv_decNumberMax()
1570 const decNumber *rhs, decContext *set) { in uprv_decNumberMax()
1592 U_CAPI decNumber * U_EXPORT2 uprv_decNumberMaxMag(decNumber *res, const decNumber *lhs, in uprv_decNumberMaxMag()
1593 const decNumber *rhs, decContext *set) { in uprv_decNumberMaxMag()
1615 U_CAPI decNumber * U_EXPORT2 uprv_decNumberMin(decNumber *res, const decNumber *lhs, in uprv_decNumberMin()
1616 const decNumber *rhs, decContext *set) { in uprv_decNumberMin()
1638 U_CAPI decNumber * U_EXPORT2 uprv_decNumberMinMag(decNumber *res, const decNumber *lhs, in uprv_decNumberMinMag()
1639 const decNumber *rhs, decContext *set) { in uprv_decNumberMinMag()
1663 U_CAPI decNumber * U_EXPORT2 uprv_decNumberMinus(decNumber *res, const decNumber *rhs, in uprv_decNumberMinus()
1665 decNumber dzero; in uprv_decNumberMinus()
1693 U_CAPI decNumber * U_EXPORT2 uprv_decNumberNextMinus(decNumber *res, const decNumber *rhs, in uprv_decNumberNextMinus()
1695 decNumber dtiny; /* constant */ in uprv_decNumberNextMinus()
1729 U_CAPI decNumber * U_EXPORT2 uprv_decNumberNextPlus(decNumber *res, const decNumber *rhs, in uprv_decNumberNextPlus()
1731 decNumber dtiny; /* constant */ in uprv_decNumberNextPlus()
1769 U_CAPI decNumber * U_EXPORT2 uprv_decNumberNextToward(decNumber *res, const decNumber *lhs, in uprv_decNumberNextToward()
1770 const decNumber *rhs, decContext *set) { in uprv_decNumberNextToward()
1771 decNumber dtiny; /* constant */ in uprv_decNumberNextToward()
1837 U_CAPI decNumber * U_EXPORT2 uprv_decNumberOr(decNumber *res, const decNumber *lhs, in uprv_decNumberOr()
1838 const decNumber *rhs, decContext *set) { in uprv_decNumberOr()
1907 U_CAPI decNumber * U_EXPORT2 uprv_decNumberPlus(decNumber *res, const decNumber *rhs, in uprv_decNumberPlus()
1909 decNumber dzero; in uprv_decNumberPlus()
1937 U_CAPI decNumber * U_EXPORT2 uprv_decNumberMultiply(decNumber *res, const decNumber *lhs, in uprv_decNumberMultiply()
1938 const decNumber *rhs, decContext *set) { in uprv_decNumberMultiply()
1974 U_CAPI decNumber * U_EXPORT2 uprv_decNumberPower(decNumber *res, const decNumber *lhs, in uprv_decNumberPower()
1975 const decNumber *rhs, decContext *set) { in uprv_decNumberPower()
1977 decNumber *alloclhs=NULL; /* non-NULL if rounded lhs allocated */ in uprv_decNumberPower()
1978 decNumber *allocrhs=NULL; /* .., rhs */ in uprv_decNumberPower()
1980 decNumber *allocdac=NULL; /* -> allocated acc buffer, iff used */ in uprv_decNumberPower()
1981 decNumber *allocinv=NULL; /* -> allocated 1/x buffer, iff used */ in uprv_decNumberPower()
1997 decNumber dnOne; /* work value 1... */ in uprv_decNumberPower()
1999 decNumber dacbuff[D2N(DECBUFFER+9)]; in uprv_decNumberPower()
2000 decNumber *dac=dacbuff; /* -> result accumulator */ in uprv_decNumberPower()
2002 decNumber invbuff[D2N(DECBUFFER+9)]; in uprv_decNumberPower()
2165 needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); in uprv_decNumberPower()
2168 allocdac=(decNumber *)malloc(needbytes); in uprv_decNumberPower()
2206 decNumber *inv=invbuff; /* assume use fixed buffer */ in uprv_decNumberPower()
2215 allocinv=(decNumber *)malloc(needbytes); in uprv_decNumberPower()
2319 U_CAPI decNumber * U_EXPORT2 uprv_decNumberQuantize(decNumber *res, const decNumber *lhs, in uprv_decNumberQuantize()
2320 const decNumber *rhs, decContext *set) { in uprv_decNumberQuantize()
2339 U_CAPI decNumber * U_EXPORT2 uprv_decNumberNormalize(decNumber *res, const decNumber *rhs, in uprv_decNumberNormalize()
2344 U_CAPI decNumber * U_EXPORT2 uprv_decNumberReduce(decNumber *res, const decNumber *rhs, in uprv_decNumberReduce()
2347 decNumber *allocrhs=NULL; /* non-NULL if rounded rhs allocated */ in uprv_decNumberReduce()
2408 U_CAPI decNumber * U_EXPORT2 uprv_decNumberRescale(decNumber *res, const decNumber *lhs, in uprv_decNumberRescale()
2409 const decNumber *rhs, decContext *set) { in uprv_decNumberRescale()
2428 U_CAPI decNumber * U_EXPORT2 uprv_decNumberRemainder(decNumber *res, const decNumber *lhs, in uprv_decNumberRemainder()
2429 const decNumber *rhs, decContext *set) { in uprv_decNumberRemainder()
2451 U_CAPI decNumber * U_EXPORT2 uprv_decNumberRemainderNear(decNumber *res, const decNumber *lhs, in uprv_decNumberRemainderNear()
2452 const decNumber *rhs, decContext *set) { in uprv_decNumberRemainderNear()
2487 U_CAPI decNumber * U_EXPORT2 uprv_decNumberRotate(decNumber *res, const decNumber *lhs, in uprv_decNumberRotate()
2488 const decNumber *rhs, decContext *set) { in uprv_decNumberRotate()
2608 U_CAPI decNumber * U_EXPORT2 uprv_decNumberSameQuantum(decNumber *res, const decNumber *lhs, in uprv_decNumberSameQuantum()
2609 const decNumber *rhs) { in uprv_decNumberSameQuantum()
2643 U_CAPI decNumber * U_EXPORT2 uprv_decNumberScaleB(decNumber *res, const decNumber *lhs, in uprv_decNumberScaleB()
2644 const decNumber *rhs, decContext *set) { in uprv_decNumberScaleB()
2700 U_CAPI decNumber * U_EXPORT2 uprv_decNumberShift(decNumber *res, const decNumber *lhs, in uprv_decNumberShift()
2701 const decNumber *rhs, decContext *set) { in uprv_decNumberShift()
2833 U_CAPI decNumber * U_EXPORT2 uprv_decNumberSquareRoot(decNumber *res, const decNumber *rhs, in uprv_decNumberSquareRoot()
2836 decNumber dzero; /* used for constant zero */ in uprv_decNumberSquareRoot()
2848 decNumber *allocrhs=NULL; /* non-NULL if rounded rhs allocated */ in uprv_decNumberSquareRoot()
2851 decNumber buff[D2N(DECBUFFER+1)]; in uprv_decNumberSquareRoot()
2853 decNumber bufa[D2N(DECBUFFER+2)]; in uprv_decNumberSquareRoot()
2855 decNumber bufb[D2N(DECBUFFER+2)]; in uprv_decNumberSquareRoot()
2856 decNumber *allocbuff=NULL; /* -> allocated buff, iff allocated */ in uprv_decNumberSquareRoot()
2857 decNumber *allocbufa=NULL; /* -> allocated bufa, iff allocated */ in uprv_decNumberSquareRoot()
2858 decNumber *allocbufb=NULL; /* -> allocated bufb, iff allocated */ in uprv_decNumberSquareRoot()
2859 decNumber *f=buff; /* reduced fraction */ in uprv_decNumberSquareRoot()
2860 decNumber *a=bufa; /* approximation to result */ in uprv_decNumberSquareRoot()
2861 decNumber *b=bufb; /* intermediate result */ in uprv_decNumberSquareRoot()
2863 decNumber buft[D2N(3)]; in uprv_decNumberSquareRoot()
2864 decNumber *t=buft; /* up-to-3-digit constant or work */ in uprv_decNumberSquareRoot()
2926 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in uprv_decNumberSquareRoot()
2928 allocbuff=(decNumber *)malloc(needbytes); in uprv_decNumberSquareRoot()
2935 needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); in uprv_decNumberSquareRoot()
2937 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberSquareRoot()
2938 allocbufb=(decNumber *)malloc(needbytes); in uprv_decNumberSquareRoot()
3178 U_CAPI decNumber * U_EXPORT2 uprv_decNumberSubtract(decNumber *res, const decNumber *lhs, in uprv_decNumberSubtract()
3179 const decNumber *rhs, decContext *set) { in uprv_decNumberSubtract()
3211 U_CAPI decNumber * U_EXPORT2 uprv_decNumberToIntegralExact(decNumber *res, const decNumber *rhs, in uprv_decNumberToIntegralExact()
3213 decNumber dn; in uprv_decNumberToIntegralExact()
3241 U_CAPI decNumber * U_EXPORT2 uprv_decNumberToIntegralValue(decNumber *res, const decNumber *rhs, in uprv_decNumberToIntegralValue()
3267 U_CAPI decNumber * U_EXPORT2 uprv_decNumberXor(decNumber *res, const decNumber *lhs, in uprv_decNumberXor()
3268 const decNumber *rhs, decContext *set) { in uprv_decNumberXor()
3332 enum decClass uprv_decNumberClass(const decNumber *dn, decContext *set) { in uprv_decNumberClass()
3385 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCopy(decNumber *dest, const decNumber *src) { in uprv_decNumberCopy()
3425 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCopyAbs(decNumber *res, const decNumber *rhs) { in uprv_decNumberCopyAbs()
3446 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCopyNegate(decNumber *res, const decNumber *rhs) { in uprv_decNumberCopyNegate()
3467 U_CAPI decNumber * U_EXPORT2 uprv_decNumberCopySign(decNumber *res, const decNumber *lhs, in uprv_decNumberCopySign()
3468 const decNumber *rhs) { in uprv_decNumberCopySign()
3490 U_CAPI uByte * U_EXPORT2 uprv_decNumberGetBCD(const decNumber *dn, uByte *bcd) { in uprv_decNumberGetBCD()
3524 U_CAPI decNumber * U_EXPORT2 uprv_decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) { in uprv_decNumberSetBCD()
3549 Int uprv_decNumberIsNormal(const decNumber *dn, decContext *set) { in uprv_decNumberIsNormal()
3569 Int uprv_decNumberIsSubnormal(const decNumber *dn, decContext *set) { in uprv_decNumberIsSubnormal()
3593 U_CAPI decNumber * U_EXPORT2 uprv_decNumberTrim(decNumber *dn) { in uprv_decNumberTrim()
3621 U_CAPI decNumber * U_EXPORT2 uprv_decNumberZero(decNumber *dn) { in uprv_decNumberZero()
3654 static void decToString(const decNumber *dn, char *string, Flag eng) { in decToString()
3836 static decNumber * decAddOp(decNumber *res, const decNumber *lhs, in decAddOp()
3837 const decNumber *rhs, decContext *set, in decAddOp()
3840 decNumber *alloclhs=NULL; /* non-NULL if rounded lhs allocated */ in decAddOp()
3841 decNumber *allocrhs=NULL; /* .., rhs */ in decAddOp()
4024 const decNumber *t; in decAddOp()
4252 static decNumber * decDivideOp(decNumber *res, in decDivideOp()
4253 const decNumber *lhs, const decNumber *rhs, in decDivideOp()
4256 decNumber *alloclhs=NULL; /* non-NULL if rounded lhs allocated */ in decDivideOp()
4257 decNumber *allocrhs=NULL; /* .., rhs */ in decDivideOp()
4872 static decNumber * decMultiplyOp(decNumber *res, const decNumber *lhs, in decMultiplyOp()
4873 const decNumber *rhs, decContext *set, in decMultiplyOp()
4929 decNumber *alloclhs=NULL; /* -> allocated buffer, iff allocated */ in decMultiplyOp()
4930 decNumber *allocrhs=NULL; /* -> allocated buffer, iff allocated */ in decMultiplyOp()
4959 const decNumber *hold=lhs; in decMultiplyOp()
5266 decNumber * decExpOp(decNumber *res, const decNumber *rhs, in decExpOp()
5273 const decNumber *x=rhs; /* (may point to safe copy later) */ in decExpOp()
5280 decNumber bufr[D2N(DECBUFFER*2+1)]; in decExpOp()
5281 decNumber *allocrhs=NULL; /* non-NULL if rhs buffer allocated */ in decExpOp()
5288 decNumber buft[D2N(DECBUFFER*2+9+1)]; in decExpOp()
5289 decNumber *allocbuft=NULL; /* -> allocated buft, iff allocated */ in decExpOp()
5290 decNumber *t=buft; /* term */ in decExpOp()
5292 decNumber bufa[D2N(DECBUFFER*4+18+1)]; in decExpOp()
5293 decNumber *allocbufa=NULL; /* -> allocated bufa, iff allocated */ in decExpOp()
5294 decNumber *a=bufa; /* accumulator */ in decExpOp()
5297 decNumber bufd[D2N(16)]; in decExpOp()
5298 decNumber *d=bufd; /* divisor */ in decExpOp()
5299 decNumber numone; /* constant 1 */ in decExpOp()
5399 decNumber *newrhs=bufr; /* assume will fit on stack */ in decExpOp()
5400 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in decExpOp()
5402 allocrhs=(decNumber *)malloc(needbytes); in decExpOp()
5432 needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); in decExpOp()
5434 allocbufa=(decNumber *)malloc(needbytes); in decExpOp()
5444 needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); in decExpOp()
5446 allocbuft=(decNumber *)malloc(needbytes); in decExpOp()
5630 decNumber * decLnOp(decNumber *res, const decNumber *rhs,
5642 decNumber bufa[D2N(DECBUFFER+12)];
5643 decNumber *allocbufa=NULL; /* -> allocated bufa, iff allocated */
5644 decNumber *a=bufa; /* accumulator/work */
5645 decNumber bufb[D2N(DECBUFFER*2+2)];
5646 decNumber *allocbufb=NULL; /* -> allocated bufa, iff allocated */
5647 decNumber *b=bufb; /* adjustment/work */
5649 decNumber numone; /* constant 1 */
5650 decNumber cmp; /* work */
5713 needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit);
5715 allocbufa=(decNumber *)malloc(needbytes);
5722 needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit);
5724 allocbufb=(decNumber *)malloc(needbytes);
5877 static decNumber * decQuantizeOp(decNumber *res, const decNumber *lhs,
5878 const decNumber *rhs, decContext *set,
5881 decNumber *alloclhs=NULL; /* non-NULL if rounded lhs allocated */
5882 decNumber *allocrhs=NULL; /* .., rhs */
5884 const decNumber *inrhs=rhs; /* save original rhs */
6050 static decNumber * decCompareOp(decNumber *res, const decNumber *lhs,
6051 const decNumber *rhs, decContext *set,
6054 decNumber *alloclhs=NULL; /* non-NULL if rounded lhs allocated */
6055 decNumber *allocrhs=NULL; /* .., rhs */
6161 const decNumber *choice;
6215 static Int decCompare(const decNumber *lhs, const decNumber *rhs,
6250 const decNumber *temp=lhs;
6637 static decNumber * decTrim(decNumber *dn, decContext *set, Flag all,
6853 static decNumber *decRoundOperand(const decNumber *dn, decContext *set,
6855 decNumber *res; /* result structure */
6861 res=(decNumber *)malloc(sizeof(decNumber)
6889 static void decCopyFit(decNumber *dest, const decNumber *src,
6935 static void decSetCoeff(decNumber *dn, decContext *set, const Unit *lsu,
7117 static void decApplyRound(decNumber *dn, decContext *set, Int residue,
7286 static void decFinish(decNumber *dn, decContext *set, Int *residue,
7321 static void decFinalize(decNumber *dn, decContext *set, Int *residue,
7334 decNumber nmin;
7395 static void decSetOverflow(decNumber *dn, decContext *set, uInt *status) {
7441 static void decSetMaxValue(decNumber *dn, decContext *set) {
7475 static void decSetSubnormal(decNumber *dn, decContext *set, Int *residue,
7561 static uInt decCheckMath(const decNumber *rhs, decContext *set,
7589 static Int decGetInt(const decNumber *dn) {
7678 static decNumber *decDecap(decNumber *dn, Int drop) {
7737 static decNumber * decNaNs(decNumber *res, const decNumber *lhs,
7738 const decNumber *rhs, decContext *set,
7788 static void decStatus(decNumber *dn, uInt status, decContext *set) {
7860 void uprv_decNumberShow(const decNumber *dn) {
7957 static Flag decCheckOperands(decNumber *res, const decNumber *lhs,
7958 const decNumber *rhs, decContext *set) {
8003 static Flag decCheckNumber(const decNumber *dn) {
8104 static void decCheckInexact(const decNumber *dn, decContext *set) {