Home
last modified time | relevance | path

Searched refs:numDigits (Results 1 – 25 of 35) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_ByteArrayBCD.java70 protected void shiftLeft(int numDigits) { in shiftLeft() argument
71 ensureCapacity(precision + numDigits); in shiftLeft()
72 int i = precision + numDigits - 1; in shiftLeft()
73 for (; i >= numDigits; i--) { in shiftLeft()
74 bcd[i] = bcd[i - numDigits]; in shiftLeft()
79 scale -= numDigits; in shiftLeft()
80 precision += numDigits; in shiftLeft()
84 protected void shiftRight(int numDigits) { in shiftRight() argument
86 for (; i < precision - numDigits; i++) { in shiftRight()
87 bcd[i] = bcd[i + numDigits]; in shiftRight()
[all …]
DDecimalQuantity_64BitBCD.java70 protected void shiftLeft(int numDigits) {
71 assert precision + numDigits <= 16;
72 bcd <<= (numDigits * 4);
73 scale -= numDigits;
74 precision += numDigits;
78 protected void shiftRight(int numDigits) {
79 bcd >>>= (numDigits * 4);
80 scale += numDigits;
81 precision -= numDigits;
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_ByteArrayBCD.java73 protected void shiftLeft(int numDigits) { in shiftLeft() argument
74 ensureCapacity(precision + numDigits); in shiftLeft()
75 int i = precision + numDigits - 1; in shiftLeft()
76 for (; i >= numDigits; i--) { in shiftLeft()
77 bcd[i] = bcd[i - numDigits]; in shiftLeft()
82 scale -= numDigits; in shiftLeft()
83 precision += numDigits; in shiftLeft()
87 protected void shiftRight(int numDigits) { in shiftRight() argument
89 for (; i < precision - numDigits; i++) { in shiftRight()
90 bcd[i] = bcd[i + numDigits]; in shiftRight()
[all …]
DDecimalQuantity_64BitBCD.java73 protected void shiftLeft(int numDigits) {
74 assert precision + numDigits <= 16;
75 bcd <<= (numDigits * 4);
76 scale -= numDigits;
77 precision += numDigits;
81 protected void shiftRight(int numDigits) {
82 bcd >>>= (numDigits * 4);
83 scale += numDigits;
84 precision -= numDigits;
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java122 protected void shiftLeft(int numDigits) { in shiftLeft() argument
123 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
127 ensureCapacity(precision + numDigits); in shiftLeft()
128 int i = precision + numDigits - 1; in shiftLeft()
129 for (; i >= numDigits; i--) { in shiftLeft()
130 bcdBytes[i] = bcdBytes[i - numDigits]; in shiftLeft()
136 bcdLong <<= (numDigits * 4); in shiftLeft()
138 scale -= numDigits; in shiftLeft()
139 precision += numDigits; in shiftLeft()
143 protected void shiftRight(int numDigits) { in shiftRight() argument
[all …]
DDecimalQuantity_AbstractBCD.java1092 protected abstract void shiftLeft(int numDigits); in shiftLeft() argument
1101 protected abstract void shiftRight(int numDigits); in shiftRight() argument
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java120 protected void shiftLeft(int numDigits) { in shiftLeft() argument
121 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
125 ensureCapacity(precision + numDigits); in shiftLeft()
126 int i = precision + numDigits - 1; in shiftLeft()
127 for (; i >= numDigits; i--) { in shiftLeft()
128 bcdBytes[i] = bcdBytes[i - numDigits]; in shiftLeft()
134 bcdLong <<= (numDigits * 4); in shiftLeft()
136 scale -= numDigits; in shiftLeft()
137 precision += numDigits; in shiftLeft()
141 protected void shiftRight(int numDigits) { in shiftRight() argument
[all …]
DDecimalQuantity_AbstractBCD.java1090 protected abstract void shiftLeft(int numDigits); in shiftLeft() argument
1099 protected abstract void shiftRight(int numDigits); in shiftRight() argument
/external/lzma/CPP/Windows/
DPropVariantConv.cpp63 unsigned numDigits = 7; in ConvertUtcFileTimeToString() local
65 for (unsigned i = numDigits; i != 0;) in ConvertUtcFileTimeToString()
70 if (numDigits > (unsigned)level) in ConvertUtcFileTimeToString()
71 numDigits = (unsigned)level; in ConvertUtcFileTimeToString()
72 s += numDigits; in ConvertUtcFileTimeToString()
/external/icu/icu4c/source/i18n/
Dnumber_decimalquantity.cpp874 void DecimalQuantity::shiftLeft(int32_t numDigits) { in shiftLeft() argument
875 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
879 ensureCapacity(precision + numDigits); in shiftLeft()
880 int i = precision + numDigits - 1; in shiftLeft()
881 for (; i >= numDigits; i--) { in shiftLeft()
882 fBCD.bcdBytes.ptr[i] = fBCD.bcdBytes.ptr[i - numDigits]; in shiftLeft()
888 fBCD.bcdLong <<= (numDigits * 4); in shiftLeft()
890 scale -= numDigits; in shiftLeft()
891 precision += numDigits; in shiftLeft()
894 void DecimalQuantity::shiftRight(int32_t numDigits) { in shiftRight() argument
[all …]
Dtzfmt.cpp1931 int32_t numDigits = 0; in parseAbuttingOffsetFields() local
1939 numDigits++; in parseAbuttingOffsetFields()
1942 if (numDigits == 0) { in parseAbuttingOffsetFields()
1948 while (numDigits > 0) { in parseAbuttingOffsetFields()
1953 U_ASSERT(numDigits > 0 && numDigits <= MAX_OFFSET_DIGITS); in parseAbuttingOffsetFields()
1954 switch (numDigits) { in parseAbuttingOffsetFields()
1983 parsedLen = parsed[numDigits - 1]; in parseAbuttingOffsetFields()
1986 numDigits--; in parseAbuttingOffsetFields()
2105 int32_t numDigits = 0; in parseOffsetFieldWithLocalizedDigits() local
2109 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits()
[all …]
Dnumber_decimalquantity.h411 void shiftLeft(int32_t numDigits);
413 void shiftRight(int32_t numDigits);
Dwinnmfmt.cpp337 UnicodeString &Win32NumberFormat::format(int32_t numDigits, UnicodeString &appendTo, const wchar_t … in format() argument
401 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
423 formatInfo.number.NumDigits = (UINT) numDigits; in format()
Dwinnmfmt.h150 …UnicodeString &format(int32_t numDigits, UnicodeString &appendTo, const wchar_t *format, ...) cons…
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeZoneFormat.java2096 int numDigits = n >= 10 ? 2 : 1;
2097 for (int i = 0; i < minDigits - numDigits; i++) {
2100 if (numDigits == 2) {
2520 int numDigits = 0;
2528 numDigits++;
2531 if (numDigits == 0) {
2537 while (numDigits > 0) {
2542 assert(numDigits > 0 && numDigits <= 6);
2543 switch (numDigits) {
2572 parsedLen[0] = parsed[numDigits - 1];
[all …]
DDigitList_Android.java260 int numDigits = count;
265 numDigits -= numShift;
271 StringBuilder significantDigits = new StringBuilder(numDigits + 1);
275 for (int i = 0; i < numDigits; i++) {
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeZoneFormat.java2166 int numDigits = n >= 10 ? 2 : 1;
2167 for (int i = 0; i < minDigits - numDigits; i++) {
2170 if (numDigits == 2) {
2590 int numDigits = 0;
2598 numDigits++;
2601 if (numDigits == 0) {
2607 while (numDigits > 0) {
2612 assert(numDigits > 0 && numDigits <= 6);
2613 switch (numDigits) {
2642 parsedLen[0] = parsed[numDigits - 1];
[all …]
DDigitList_Android.java258 int numDigits = count;
263 numDigits -= numShift;
269 StringBuilder significantDigits = new StringBuilder(numDigits + 1);
273 for (int i = 0; i < numDigits; i++) {
/external/lzma/C/Util/7z/
D7zMain.c259 static void UInt64ToStr(UInt64 value, char *s, int numDigits) in UInt64ToStr() argument
270 for (numDigits -= pos; numDigits > 0; numDigits--) in UInt64ToStr()
279 static char *UIntToStr(char *s, unsigned value, int numDigits) in UIntToStr() argument
287 for (numDigits -= pos; numDigits > 0; numDigits--) in UIntToStr()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DVersionInfo.java672 int numDigits = maxDigits; in getVersionString() local
673 while (numDigits > minDigits) { in getVersionString()
674 if (digits[numDigits - 1] != 0) { in getVersionString()
677 numDigits--; in getVersionString()
682 for (int i = 1; i < numDigits; i++) { in getVersionString()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DVersionInfo.java632 int numDigits = maxDigits; in getVersionString() local
633 while (numDigits > minDigits) { in getVersionString()
634 if (digits[numDigits - 1] != 0) { in getVersionString()
637 numDigits--; in getVersionString()
642 for (int i = 1; i < numDigits; i++) { in getVersionString()
/external/lzma/CPP/7zip/Common/
DMethodProps.cpp106 unsigned numDigits = (unsigned)(end - s.Ptr()); in StringToDictSize() local
107 if (numDigits == 0 || s.Len() > numDigits + 1) in StringToDictSize()
110 if (s.Len() == numDigits) in StringToDictSize()
123 switch (MyCharLower_Ascii(s[numDigits])) in StringToDictSize()
/external/deqp/framework/common/
DtcuFloatFormat.cpp243 const int numDigits = (m_fractionBits + 3) / 4; in floatToHex() local
244 const deUint64 aligned = fraction << (numDigits * 4 - m_fractionBits); in floatToHex()
249 << std::hex << std::setw(numDigits) << std::setfill('0') << aligned in floatToHex()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGeneratePluralList.java142 private void getExamples(String locale, Map<String, List<Integer>> integerMap, int numDigits) { in getExamples() argument
147 int limit = (int) Math.pow(10, numDigits); in getExamples()
156 format.setMinimumIntegerDigits(numDigits); in getExamples()
/external/pdfium/fxbarcode/qrcode/
DBC_QRCoderMatrixUtil.cpp486 int32_t numDigits = 0; in FindMSBSet() local
489 ++numDigits; in FindMSBSet()
491 return numDigits; in FindMSBSet()

12