Searched refs:safeSubtract (Results 1 – 3 of 3) sorted by relevance
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 727 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/ |
D | DecimalQuantity_AbstractBCD.java | 729 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/ |
D | number_decimalquantity.cpp | 39 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()
|