Lines Matching refs:numDigits
1024 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument
1025 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
1029 ensureCapacity(precision + numDigits); in shiftLeft()
1030 uprv_memmove(fBCD.bcdBytes.ptr + numDigits, fBCD.bcdBytes.ptr, precision); in shiftLeft()
1031 uprv_memset(fBCD.bcdBytes.ptr, 0, numDigits); in shiftLeft()
1033 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft()
1035 scale -= numDigits; in shiftLeft()
1036 precision += numDigits; in shiftLeft()
1039 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument
1042 for (; i < precision - numDigits; i++) { in shiftRight()
1043 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i + numDigits]; in shiftRight()
1049 fBCD.bcdLong >>= (numDigits * 4); in shiftRight()
1051 scale += numDigits; in shiftRight()
1052 precision -= numDigits; in shiftRight()
1055 void DecimalQuantity::popFromLeft(int32_t numDigits) { in popFromLeft() argument
1056 U_ASSERT(numDigits <= precision); in popFromLeft()
1059 for (; i >= precision - numDigits; i--) { in popFromLeft()
1063 fBCD.bcdLong &= (static_cast<uint64_t>(1) << ((precision - numDigits) * 4)) - 1; in popFromLeft()
1065 precision -= numDigits; in popFromLeft()