• Home
  • Raw
  • Download

Lines Matching refs:fBCD

81         uprv_free(fBCD.bcdBytes.ptr);  in ~DecimalQuantity()
82 fBCD.bcdBytes.ptr = nullptr; in ~DecimalQuantity()
852 return fBCD.bcdBytes.ptr[position]; in getDigitPos()
855 return (int8_t) ((fBCD.bcdLong >> (position * 4)) & 0xf); in getDigitPos()
863 fBCD.bcdBytes.ptr[position] = value; in setDigitPos()
867 fBCD.bcdBytes.ptr[position] = value; in setDigitPos()
870 fBCD.bcdLong = (fBCD.bcdLong & ~(0xfL << shift)) | ((long) value << shift); in setDigitPos()
882 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i - numDigits]; in shiftLeft()
885 fBCD.bcdBytes.ptr[i] = 0; in shiftLeft()
888 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft()
898 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i + numDigits]; in shiftRight()
901 fBCD.bcdBytes.ptr[i] = 0; in shiftRight()
904 fBCD.bcdLong >>= (numDigits * 4); in shiftRight()
912 uprv_free(fBCD.bcdBytes.ptr); in setBcdToZero()
913 fBCD.bcdBytes.ptr = nullptr; in setBcdToZero()
916 fBCD.bcdLong = 0L; in setBcdToZero()
933 fBCD.bcdLong = result >> (i * 4); in readIntToBcd()
944 fBCD.bcdBytes.ptr[i] = static_cast<int8_t>(n % 10); in readLongToBcd()
957 fBCD.bcdLong = result >> (i * 4); in readLongToBcd()
968 fBCD.bcdBytes.ptr[i] = dn->lsu[i]; in readDecNumberToBcd()
975 fBCD.bcdLong = result; in readDecNumberToBcd()
988 fBCD.bcdBytes.ptr[i] = buffer[length-i-1] - '0'; in readDoubleConversionToBcd()
995 fBCD.bcdLong = result; in readDoubleConversionToBcd()
1004 for (; delta < precision && fBCD.bcdBytes.ptr[delta] == 0; delta++); in compact()
1016 for (; leading >= 0 && fBCD.bcdBytes.ptr[leading] == 0; leading--); in compact()
1025 if (fBCD.bcdLong == 0L) { in compact()
1035 fBCD.bcdLong >>= delta * 4; in compact()
1051 int32_t oldCapacity = usingBytes ? fBCD.bcdBytes.len : 0; in ensureCapacity()
1056 fBCD.bcdBytes.ptr = static_cast<int8_t*>(uprv_malloc(capacity * sizeof(int8_t))); in ensureCapacity()
1057 fBCD.bcdBytes.len = capacity; in ensureCapacity()
1059 uprv_memset(fBCD.bcdBytes.ptr, 0, capacity * sizeof(int8_t)); in ensureCapacity()
1062 uprv_memcpy(bcd1, fBCD.bcdBytes.ptr, oldCapacity * sizeof(int8_t)); in ensureCapacity()
1065 uprv_free(fBCD.bcdBytes.ptr); in ensureCapacity()
1066 fBCD.bcdBytes.ptr = bcd1; in ensureCapacity()
1067 fBCD.bcdBytes.len = capacity * 2; in ensureCapacity()
1078 bcdLong |= fBCD.bcdBytes.ptr[i]; in switchStorage()
1080 uprv_free(fBCD.bcdBytes.ptr); in switchStorage()
1081 fBCD.bcdBytes.ptr = nullptr; in switchStorage()
1082 fBCD.bcdLong = bcdLong; in switchStorage()
1087 uint64_t bcdLong = fBCD.bcdLong; in switchStorage()
1090 fBCD.bcdBytes.ptr[i] = static_cast<int8_t>(bcdLong & 0xf); in switchStorage()
1101 uprv_memcpy(fBCD.bcdBytes.ptr, other.fBCD.bcdBytes.ptr, other.precision * sizeof(int8_t)); in copyBcdFrom()
1103 fBCD.bcdLong = other.fBCD.bcdLong; in copyBcdFrom()
1111 fBCD.bcdBytes.ptr = other.fBCD.bcdBytes.ptr; in moveBcdFrom()
1112 fBCD.bcdBytes.len = other.fBCD.bcdBytes.len; in moveBcdFrom()
1114 other.fBCD.bcdBytes.ptr = nullptr; in moveBcdFrom()
1117 fBCD.bcdLong = other.fBCD.bcdLong; in moveBcdFrom()
1124 int32_t capacity = fBCD.bcdBytes.len; in checkHealth()
1136 if (precision == 0 && fBCD.bcdLong != 0) { in checkHealth()