Lines Matching refs:fBCD
82 uprv_free(fBCD.bcdBytes.ptr); in ~DecimalQuantity()
83 fBCD.bcdBytes.ptr = nullptr; in ~DecimalQuantity()
987 return fBCD.bcdBytes.ptr[position]; in getDigitPos()
990 return (int8_t) ((fBCD.bcdLong >> (position * 4)) & 0xf); in getDigitPos()
998 fBCD.bcdBytes.ptr[position] = value; in setDigitPos()
1002 fBCD.bcdBytes.ptr[position] = value; in setDigitPos()
1005 fBCD.bcdLong = (fBCD.bcdLong & ~(0xfL << shift)) | ((long) value << shift); in setDigitPos()
1015 uprv_memmove(fBCD.bcdBytes.ptr + numDigits, fBCD.bcdBytes.ptr, precision); in shiftLeft()
1016 uprv_memset(fBCD.bcdBytes.ptr, 0, numDigits); in shiftLeft()
1018 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft()
1028 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i + numDigits]; in shiftRight()
1031 fBCD.bcdBytes.ptr[i] = 0; in shiftRight()
1034 fBCD.bcdLong >>= (numDigits * 4); in shiftRight()
1045 fBCD.bcdBytes.ptr[i] = 0; in popFromLeft()
1048 fBCD.bcdLong &= (static_cast<uint64_t>(1) << ((precision - numDigits) * 4)) - 1; in popFromLeft()
1055 uprv_free(fBCD.bcdBytes.ptr); in setBcdToZero()
1056 fBCD.bcdBytes.ptr = nullptr; in setBcdToZero()
1059 fBCD.bcdLong = 0L; in setBcdToZero()
1077 fBCD.bcdLong = result >> (i * 4); in readIntToBcd()
1088 fBCD.bcdBytes.ptr[i] = static_cast<int8_t>(n % 10); in readLongToBcd()
1101 fBCD.bcdLong = result >> (i * 4); in readLongToBcd()
1112 fBCD.bcdBytes.ptr[i] = dn->lsu[i]; in readDecNumberToBcd()
1119 fBCD.bcdLong = result; in readDecNumberToBcd()
1132 fBCD.bcdBytes.ptr[i] = buffer[length-i-1] - '0'; in readDoubleConversionToBcd()
1139 fBCD.bcdLong = result; in readDoubleConversionToBcd()
1148 for (; delta < precision && fBCD.bcdBytes.ptr[delta] == 0; delta++); in compact()
1160 for (; leading >= 0 && fBCD.bcdBytes.ptr[leading] == 0; leading--); in compact()
1169 if (fBCD.bcdLong == 0L) { in compact()
1179 fBCD.bcdLong >>= delta * 4; in compact()
1195 int32_t oldCapacity = usingBytes ? fBCD.bcdBytes.len : 0; in ensureCapacity()
1200 fBCD.bcdBytes.ptr = static_cast<int8_t*>(uprv_malloc(capacity * sizeof(int8_t))); in ensureCapacity()
1201 fBCD.bcdBytes.len = capacity; in ensureCapacity()
1203 uprv_memset(fBCD.bcdBytes.ptr, 0, capacity * sizeof(int8_t)); in ensureCapacity()
1206 uprv_memcpy(bcd1, fBCD.bcdBytes.ptr, oldCapacity * sizeof(int8_t)); in ensureCapacity()
1209 uprv_free(fBCD.bcdBytes.ptr); in ensureCapacity()
1210 fBCD.bcdBytes.ptr = bcd1; in ensureCapacity()
1211 fBCD.bcdBytes.len = capacity * 2; in ensureCapacity()
1222 bcdLong |= fBCD.bcdBytes.ptr[i]; in switchStorage()
1224 uprv_free(fBCD.bcdBytes.ptr); in switchStorage()
1225 fBCD.bcdBytes.ptr = nullptr; in switchStorage()
1226 fBCD.bcdLong = bcdLong; in switchStorage()
1231 uint64_t bcdLong = fBCD.bcdLong; in switchStorage()
1234 fBCD.bcdBytes.ptr[i] = static_cast<int8_t>(bcdLong & 0xf); in switchStorage()
1245 uprv_memcpy(fBCD.bcdBytes.ptr, other.fBCD.bcdBytes.ptr, other.precision * sizeof(int8_t)); in copyBcdFrom()
1247 fBCD.bcdLong = other.fBCD.bcdLong; in copyBcdFrom()
1255 fBCD.bcdBytes.ptr = other.fBCD.bcdBytes.ptr; in moveBcdFrom()
1256 fBCD.bcdBytes.len = other.fBCD.bcdBytes.len; in moveBcdFrom()
1258 other.fBCD.bcdBytes.ptr = nullptr; in moveBcdFrom()
1261 fBCD.bcdLong = other.fBCD.bcdLong; in moveBcdFrom()
1268 int32_t capacity = fBCD.bcdBytes.len; in checkHealth()
1280 if (precision == 0 && fBCD.bcdLong != 0) { in checkHealth()