Lines Matching refs:numDigits
1009 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument
1010 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
1014 ensureCapacity(precision + numDigits); in shiftLeft()
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()
1020 scale -= numDigits; in shiftLeft()
1021 precision += numDigits; in shiftLeft()
1024 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument
1027 for (; i < precision - numDigits; i++) { in shiftRight()
1028 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i + numDigits]; in shiftRight()
1034 fBCD.bcdLong >>= (numDigits * 4); in shiftRight()
1036 scale += numDigits; in shiftRight()
1037 precision -= numDigits; in shiftRight()
1040 void DecimalQuantity::popFromLeft(int32_t numDigits) { in popFromLeft() argument
1041 U_ASSERT(numDigits <= precision); in popFromLeft()
1044 for (; i >= precision - numDigits; i--) { in popFromLeft()
1048 fBCD.bcdLong &= (static_cast<uint64_t>(1) << ((precision - numDigits) * 4)) - 1; in popFromLeft()
1050 precision -= numDigits; in popFromLeft()