Home
last modified time | relevance | path

Searched refs:needbytes (Results 1 – 1 of 1) sorted by relevance

/external/icu/icu4c/source/i18n/
DdecNumber.c674 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()
[all …]