Lines Matching refs:needbytes

674       Int needbytes=D2U(d)*sizeof(Unit);/* bytes needed  */  in uprv_decNumberFromString()  local
676 if (needbytes>(Int)sizeof(resbuff)) { /* too big for local */ in uprv_decNumberFromString()
677 allocres=(Unit *)malloc(needbytes); in uprv_decNumberFromString()
950 uInt needbytes; /* for space calculations */ in uprv_decNumberCompareTotalMag() local
965 needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); in uprv_decNumberCompareTotalMag()
966 if (needbytes>sizeof(bufa)) { /* need malloc space */ in uprv_decNumberCompareTotalMag()
967 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberCompareTotalMag()
979 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in uprv_decNumberCompareTotalMag()
980 if (needbytes>sizeof(bufb)) { /* need malloc space */ in uprv_decNumberCompareTotalMag()
981 allocbufb=(decNumber *)malloc(needbytes); in uprv_decNumberCompareTotalMag()
1129 uInt needbytes; /* for space calculations */ in uprv_decNumberFMA() local
1158 needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); in uprv_decNumberFMA()
1159 if (needbytes>sizeof(bufa)) { /* need malloc space */ in uprv_decNumberFMA()
1160 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberFMA()
1417 uInt needbytes; /* for space calculations */ in uprv_decNumberLog10() local
1491 needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); in uprv_decNumberLog10()
1492 if (needbytes>sizeof(bufa)) { /* need malloc space */ in uprv_decNumberLog10()
1493 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberLog10()
1514 needbytes=sizeof(decNumber)+(D2U(p)-1)*sizeof(Unit); in uprv_decNumberLog10()
1515 if (needbytes>sizeof(bufb)) { /* need malloc space */ in uprv_decNumberLog10()
1516 allocbufb=(decNumber *)malloc(needbytes); in uprv_decNumberLog10()
1987 uInt needbytes; /* buffer size needed */ in uprv_decNumberPower() local
2161 needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); in uprv_decNumberPower()
2163 if (needbytes>sizeof(dacbuff)) { in uprv_decNumberPower()
2164 allocdac=(decNumber *)malloc(needbytes); in uprv_decNumberPower()
2210 if (needbytes>sizeof(invbuff)) { in uprv_decNumberPower()
2211 allocinv=(decNumber *)malloc(needbytes); in uprv_decNumberPower()
2840 Int needbytes; /* work */ in uprv_decNumberSquareRoot() local
2922 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in uprv_decNumberSquareRoot()
2923 if (needbytes>(Int)sizeof(buff)) { in uprv_decNumberSquareRoot()
2924 allocbuff=(decNumber *)malloc(needbytes); in uprv_decNumberSquareRoot()
2931 needbytes=sizeof(decNumber)+(D2U(maxp)-1)*sizeof(Unit); in uprv_decNumberSquareRoot()
2932 if (needbytes>(Int)sizeof(bufa)) { /* [same applies to b] */ in uprv_decNumberSquareRoot()
2933 allocbufa=(decNumber *)malloc(needbytes); in uprv_decNumberSquareRoot()
2934 allocbufb=(decNumber *)malloc(needbytes); in uprv_decNumberSquareRoot()
4876 Int needbytes; /* size calculator */ in decMultiplyOp() local
4989 needbytes=ilhs*sizeof(uInt); in decMultiplyOp()
4990 if (needbytes>(Int)sizeof(zlhibuff)) { in decMultiplyOp()
4991 alloclhi=(uInt *)malloc(needbytes); in decMultiplyOp()
4993 needbytes=irhs*sizeof(uInt); in decMultiplyOp()
4994 if (needbytes>(Int)sizeof(zrhibuff)) { in decMultiplyOp()
4995 allocrhi=(uInt *)malloc(needbytes); in decMultiplyOp()
5009 needbytes=iacc*sizeof(uLong); in decMultiplyOp()
5012 needbytes+=zoff*8; in decMultiplyOp()
5014 if (needbytes>(Int)sizeof(zaccbuff)) { in decMultiplyOp()
5015 allocacc=(uLong *)malloc(needbytes); in decMultiplyOp()
5109 needbytes=(D2U(lhs->digits)+D2U(rhs->digits))*sizeof(Unit); in decMultiplyOp()
5110 if (needbytes>(Int)sizeof(accbuff)) { in decMultiplyOp()
5111 allocacc=(Unit *)malloc(needbytes); in decMultiplyOp()
5268 uInt needbytes; /* for space calculations */ in decExpOp() local
5396 needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); in decExpOp()
5397 if (needbytes>sizeof(bufr)) { /* need malloc space */ in decExpOp()
5398 allocrhs=(decNumber *)malloc(needbytes); in decExpOp()
5428 needbytes=sizeof(decNumber)+(D2U(p*2)-1)*sizeof(Unit); in decExpOp()
5429 if (needbytes>sizeof(bufa)) { /* need malloc space */ in decExpOp()
5430 allocbufa=(decNumber *)malloc(needbytes); in decExpOp()
5440 needbytes=sizeof(decNumber)+(D2U(p+2)-1)*sizeof(Unit); in decExpOp()
5441 if (needbytes>sizeof(buft)) { /* need malloc space */ in decExpOp()
5442 allocbuft=(decNumber *)malloc(needbytes); in decExpOp()
5629 uInt needbytes; /* for space calculations */ local
5709 needbytes=sizeof(decNumber)+(D2U(MAXI(p,16))-1)*sizeof(Unit);
5710 if (needbytes>sizeof(bufa)) { /* need malloc space */
5711 allocbufa=(decNumber *)malloc(needbytes);
5718 needbytes=sizeof(decNumber)+(D2U(MAXI(pp,16))-1)*sizeof(Unit);
5719 if (needbytes>sizeof(bufb)) { /* need malloc space */
5720 allocbufb=(decNumber *)malloc(needbytes);