Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_AbstractBCD.java727 private static int safeSubtract(int a, int b) { in safeSubtract() method in DecimalQuantity_AbstractBCD
761 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
779 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
812 for (int p = safeSubtract(position, 2); p >= 0; p--) { in roundToMagnitude()
820 int p = safeSubtract(position, 2); in roundToMagnitude()
879 if (safeSubtract(position, 1) < precision - 14 in roundToMagnitude()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_AbstractBCD.java729 private static int safeSubtract(int a, int b) { in safeSubtract() method in DecimalQuantity_AbstractBCD
763 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
781 byte leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
814 for (int p = safeSubtract(position, 2); p >= 0; p--) { in roundToMagnitude()
822 int p = safeSubtract(position, 2); in roundToMagnitude()
881 if (safeSubtract(position, 1) < precision - 14 in roundToMagnitude()
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp39 inline int32_t safeSubtract(int32_t a, int32_t b) { in safeSubtract() function
668 int position = safeSubtract(magnitude, scale); in roundToMagnitude()
680 int8_t leadingDigit = getDigitPos(safeSubtract(position, 1)); in roundToMagnitude()
713 for (int p = safeSubtract(position, 2); p >= 0; p--) { in roundToMagnitude()
721 int32_t p = safeSubtract(position, 2); in roundToMagnitude()
779 if (safeSubtract(position, 1) < precision - 14 || in roundToMagnitude()