Home
last modified time | relevance | path

Searched refs:safeSubtract (Results 1 – 3 of 3) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java725 private static int safeSubtract(int a, int b) { in safeSubtract() method in DecimalQuantity_AbstractBCD
752 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
769 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
784 for (int p = safeSubtract(position, 2); p >= 0; p--) { in roundToMagnitude()
792 int p = safeSubtract(position, 2); in roundToMagnitude()
832 if (safeSubtract(position, 1) < precision - 14 in roundToMagnitude()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java723 private static int safeSubtract(int a, int b) { in safeSubtract() method in DecimalQuantity_AbstractBCD
750 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
767 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
782 for (int p = safeSubtract(position, 2); p >= 0; p--) { in roundToMagnitude()
790 int p = safeSubtract(position, 2); in roundToMagnitude()
830 if (safeSubtract(position, 1) < precision - 14 in roundToMagnitude()
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp38 inline int32_t safeSubtract(int32_t a, int32_t b) { in safeSubtract() function
614 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
624 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
639 for (int p = safeSubtract(position, 2); p >= 0; p--) { in roundToMagnitude()
647 int32_t p = safeSubtract(position, 2); in roundToMagnitude()
686 if (safeSubtract(position, 1) < precision - 14 || in roundToMagnitude()