Home
last modified time | relevance | path

Searched refs:numDigits (Results 1 – 25 of 37) 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;
85 protected void popFromLeft(int numDigits) {
[all …]
/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;
88 protected void popFromLeft(int numDigits) {
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java121 protected void shiftLeft(int numDigits) { in shiftLeft() argument
122 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
126 ensureCapacity(precision + numDigits); in shiftLeft()
127 System.arraycopy(bcdBytes, 0, bcdBytes, numDigits, precision); in shiftLeft()
128 Arrays.fill(bcdBytes, 0, numDigits, (byte) 0); in shiftLeft()
130 bcdLong <<= (numDigits * 4); in shiftLeft()
132 scale -= numDigits; in shiftLeft()
133 precision += numDigits; in shiftLeft()
137 protected void shiftRight(int numDigits) { in shiftRight() argument
140 for (; i < precision - numDigits; i++) { in shiftRight()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalQuantity_DualStorageBCD.java123 protected void shiftLeft(int numDigits) { in shiftLeft() argument
124 if (!usingBytes && precision + numDigits > 16) { in shiftLeft()
128 ensureCapacity(precision + numDigits); in shiftLeft()
129 System.arraycopy(bcdBytes, 0, bcdBytes, numDigits, precision); in shiftLeft()
130 Arrays.fill(bcdBytes, 0, numDigits, (byte) 0); in shiftLeft()
132 bcdLong <<= (numDigits * 4); in shiftLeft()
134 scale -= numDigits; in shiftLeft()
135 precision += numDigits; in shiftLeft()
139 protected void shiftRight(int numDigits) { in shiftRight() argument
142 for (; i < precision - numDigits; i++) { in shiftRight()
[all …]
/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.cpp1006 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()
[all …]
Dnumber_decimalquantity.h446 void shiftLeft(int32_t numDigits);
454 void shiftRight(int32_t numDigits);
462 void popFromLeft(int32_t numDigits);
Dtzfmt.cpp1936 int32_t numDigits = 0; in parseAbuttingOffsetFields() local
1944 numDigits++; in parseAbuttingOffsetFields()
1947 if (numDigits == 0) { in parseAbuttingOffsetFields()
1953 while (numDigits > 0) { in parseAbuttingOffsetFields()
1958 U_ASSERT(numDigits > 0 && numDigits <= MAX_OFFSET_DIGITS); in parseAbuttingOffsetFields()
1959 switch (numDigits) { in parseAbuttingOffsetFields()
1988 parsedLen = parsed[numDigits - 1]; in parseAbuttingOffsetFields()
1991 numDigits--; in parseAbuttingOffsetFields()
2110 int32_t numDigits = 0; in parseOffsetFieldWithLocalizedDigits() local
2114 while (idx < text.length() && numDigits < maxDigits) { in parseOffsetFieldWithLocalizedDigits()
[all …]
Dwinnmfmt.cpp338 UnicodeString &Win32NumberFormat::format(int32_t numDigits, UnicodeString &appendTo, const wchar_t … in format() argument
402 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
424 formatInfo.number.NumDigits = (UINT) numDigits; in format()
Dwinnmfmt.h150 …UnicodeString &format(int32_t numDigits, UnicodeString &appendTo, const wchar_t *format, ...) cons…
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DVersionInfo.java651 int numDigits = maxDigits; in getVersionString() local
652 while (numDigits > minDigits) { in getVersionString()
653 if (digits[numDigits - 1] != 0) { in getVersionString()
656 numDigits--; in getVersionString()
661 for (int i = 1; i < numDigits; i++) { in getVersionString()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DVersionInfo.java607 int numDigits = maxDigits; in getVersionString() local
608 while (numDigits > minDigits) { in getVersionString()
609 if (digits[numDigits - 1] != 0) { in getVersionString()
612 numDigits--; in getVersionString()
617 for (int i = 1; i < numDigits; i++) { in getVersionString()
/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/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 …]
/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 …]
/external/icu/libicu/cts_headers/
Dnumber_decimalquantity.h446 void shiftLeft(int32_t numDigits);
454 void shiftRight(int32_t numDigits);
462 void popFromLeft(int32_t numDigits);
Dwinnmfmt.h150 …UnicodeString &format(int32_t numDigits, UnicodeString &appendTo, const wchar_t *format, ...) cons…
/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/pdfium/fxbarcode/qrcode/
DBC_QRCoderMatrixUtil.cpp88 int32_t numDigits = 0; in FindMSBSet() local
91 ++numDigits; in FindMSBSet()
93 return numDigits; in FindMSBSet()
/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/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp1051 int numDigits = 0; in scan() local
1065 numDigits++; in scan()
1068 if (numDigits == 0) { in scan()
1083 int numDigits = 1; in scan() local
1085 while (numDigits < 3) { in scan()
1093 numDigits++; in scan()
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/preprocessor/
DPpScanner.cpp1051 int numDigits = 0; in scan() local
1065 numDigits++; in scan()
1068 if (numDigits == 0) { in scan()
1083 int numDigits = 1; in scan() local
1085 while (numDigits < 3) { in scan()
1093 numDigits++; in scan()

12