Lines Matching refs:numDigits
1006 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument
1007 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
1011 ensureCapacity(precision + numDigits); in shiftLeft()
1012 uprv_memmove(fBCD.bcdBytes.ptr + numDigits, fBCD.bcdBytes.ptr, precision); in shiftLeft()
1013 uprv_memset(fBCD.bcdBytes.ptr, 0, numDigits); in shiftLeft()
1015 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft()
1017 scale -= numDigits; in shiftLeft()
1018 precision += numDigits; in shiftLeft()
1021 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument
1024 for (; i < precision - numDigits; i++) { in shiftRight()
1025 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i + numDigits]; in shiftRight()
1031 fBCD.bcdLong >>= (numDigits * 4); in shiftRight()
1033 scale += numDigits; in shiftRight()
1034 precision -= numDigits; in shiftRight()
1037 void DecimalQuantity::popFromLeft(int32_t numDigits) { in popFromLeft() argument
1038 U_ASSERT(numDigits <= precision); in popFromLeft()
1041 for (; i >= precision - numDigits; i--) { in popFromLeft()
1045 fBCD.bcdLong &= (static_cast<uint64_t>(1) << ((precision - numDigits) * 4)) - 1; in popFromLeft()
1047 precision -= numDigits; in popFromLeft()