Home
last modified time | relevance | path

Searched refs:maxInt (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DIntegerWidth.java22 final int maxInt; field in IntegerWidth
24 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument
26 this.maxInt = maxInt; in IntegerWidth()
66 public IntegerWidth truncateAt(int maxInt) { in truncateAt() argument
67 if (maxInt == this.maxInt) { in truncateAt()
69 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt()
70 return new IntegerWidth(minInt, maxInt); in truncateAt()
71 } else if (minInt == 1 && maxInt == -1) { in truncateAt()
73 } else if (maxInt == -1) { in truncateAt()
DNumberPropertyMapper.java132 int maxInt = properties.getMaximumIntegerDigits(); in oldToNew() local
160 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew()
163 maxInt = maxInt < 0 ? -1 : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
169 maxInt = maxInt < 0 ? -1 in oldToNew()
170 … : maxInt < minInt ? minInt : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
203 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
240 if (maxInt > 8) { in oldToNew()
243 maxInt = minInt; in oldToNew()
244 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
245 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
[all …]
DNumberSkeletonImpl.java1308 int maxInt; in parseIntegerWidthOption() local
1310 maxInt = -1; in parseIntegerWidthOption()
1313 maxInt = 0; in parseIntegerWidthOption()
1316 if (maxInt != -1 && segment.charAt(offset) == '#') { in parseIntegerWidthOption()
1317 maxInt++; in parseIntegerWidthOption()
1331 if (maxInt != -1) { in parseIntegerWidthOption()
1332 maxInt += minInt; in parseIntegerWidthOption()
1338 if (maxInt == -1) { in parseIntegerWidthOption()
1341 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1345 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument
[all …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DIntegerWidth.java21 final int maxInt; field in IntegerWidth
23 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument
25 this.maxInt = maxInt; in IntegerWidth()
67 public IntegerWidth truncateAt(int maxInt) { in truncateAt() argument
68 if (maxInt == this.maxInt) { in truncateAt()
70 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt()
71 return new IntegerWidth(minInt, maxInt); in truncateAt()
72 } else if (minInt == 1 && maxInt == -1) { in truncateAt()
74 } else if (maxInt == -1) { in truncateAt()
DNumberPropertyMapper.java131 int maxInt = properties.getMaximumIntegerDigits(); in oldToNew() local
159 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew()
162 maxInt = maxInt < 0 ? -1 : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
168 maxInt = maxInt < 0 ? -1 in oldToNew()
169 … : maxInt < minInt ? minInt : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
202 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
239 if (maxInt > 8) { in oldToNew()
242 maxInt = minInt; in oldToNew()
243 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
244 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
[all …]
/third_party/icu/icu4c/source/i18n/
Dnumber_integerwidth.cpp16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument
18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth()
30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument
33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt()
34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt()
35 } else if (maxInt == -1) { in truncateAt()
Dnumber_mapper.cpp88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local
119 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew()
122 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
160 static_cast<digits_t>(maxInt), in oldToNew()
198 if (maxInt > 8) { in oldToNew()
201 maxInt = minInt; in oldToNew()
202 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
203 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
206 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dnumber_integerwidth.cpp16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument
18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth()
30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument
33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt()
34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt()
35 } else if (maxInt == -1) { in truncateAt()
Dnumber_mapper.cpp88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local
119 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew()
122 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
160 static_cast<digits_t>(maxInt), in oldToNew()
198 if (maxInt > 8) { in oldToNew()
201 maxInt = minInt; in oldToNew()
202 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
203 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
206 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dnumber_integerwidth.cpp16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument
18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth()
30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument
33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt()
34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt()
35 } else if (maxInt == -1) { in truncateAt()
Dnumber_mapper.cpp88 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local
119 minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac; in oldToNew()
122 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
128 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
160 static_cast<digits_t>(maxInt), in oldToNew()
198 if (maxInt > 8) { in oldToNew()
201 maxInt = minInt; in oldToNew()
202 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
203 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
206 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dnumber_integerwidth.cpp16 IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) { in IntegerWidth() argument
18 fUnion.minMaxInt.fMaxInt = maxInt; in IntegerWidth()
30 IntegerWidth IntegerWidth::truncateAt(int32_t maxInt) { in truncateAt() argument
33 if (maxInt >= 0 && maxInt <= kMaxIntFracSig && minInt <= maxInt) { in truncateAt()
34 return {minInt, static_cast<digits_t>(maxInt), false}; in truncateAt()
35 } else if (maxInt == -1) { in truncateAt()
Dnumber_mapper.cpp98 int32_t maxInt = properties.maximumIntegerDigits; in oldToNew() local
132 maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
138 maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt; in oldToNew()
166 static_cast<digits_t>(maxInt), in oldToNew()
204 if (maxInt > 8) { in oldToNew()
207 maxInt = minInt; in oldToNew()
208 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
209 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
212 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
214 int engineering = maxInt < 0 ? -1 : maxInt; in oldToNew()
[all …]
/third_party/icu/icu4c/source/common/
Dputilimp.h544 uintptr_t maxInt; in pinCapacity() local
548 maxInt = 0x7fffffff; in pinCapacity()
550 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity()
552 maxInt = destInt + 0x7fffffffu; in pinCapacity()
553 if (maxInt < destInt) { in pinCapacity()
556 maxInt = (uintptr_t)-1; in pinCapacity()
560 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
/third_party/node/deps/icu-small/source/common/
Dputilimp.h544 uintptr_t maxInt; in pinCapacity() local
548 maxInt = 0x7fffffff; in pinCapacity()
550 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity()
552 maxInt = destInt + 0x7fffffffu; in pinCapacity()
553 if (maxInt < destInt) { in pinCapacity()
556 maxInt = (uintptr_t)-1; in pinCapacity()
560 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
/third_party/skia/third_party/externals/icu/source/common/
Dputilimp.h544 uintptr_t maxInt; in pinCapacity() local
548 maxInt = 0x7fffffff; in pinCapacity()
550 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity()
552 maxInt = destInt + 0x7fffffffu; in pinCapacity()
553 if (maxInt < destInt) { in pinCapacity()
556 maxInt = (uintptr_t)-1; in pinCapacity()
560 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dputilimp.h598 uintptr_t maxInt; in pinCapacity() local
602 maxInt = 0x7fffffff; in pinCapacity()
604 maxInt = (uintptr_t)uprv_maximumPtr((void *)dest); in pinCapacity()
606 maxInt = destInt + 0x7fffffffu; in pinCapacity()
607 if (maxInt < destInt) { in pinCapacity()
610 maxInt = (uintptr_t)-1; in pinCapacity()
614 uintptr_t maxBytes = maxInt - destInt; // max. 2GB in pinCapacity()
/third_party/node/deps/npm/node_modules/uri-js/node_modules/punycode/
Dpunycode.es6.js4 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 constant
240 if (digit >= base || digit > floor((maxInt - i) / w)) {
252 if (w > floor(maxInt / baseMinusT)) {
265 if (floor(i / out) > maxInt - n) {
324 let m = maxInt;
334 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
342 if (currentValue < n && ++delta > maxInt) {
Dpunycode.js4 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 constant
240 if (digit >= base || digit > floor((maxInt - i) / w)) {
252 if (w > floor(maxInt / baseMinusT)) {
265 if (floor(i / out) > maxInt - n) {
324 let m = maxInt;
334 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
342 if (currentValue < n && ++delta > maxInt) {
/third_party/node/lib/
Dpunycode.js4 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 constant
240 if (digit >= base || digit > floor((maxInt - i) / w)) {
252 if (w > floor(maxInt / baseMinusT)) {
265 if (floor(i / out) > maxInt - n) {
324 let m = maxInt;
334 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
342 if (currentValue < n && ++delta > maxInt) {
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderSharedVarTests.cpp195 const int maxInt = m_precision == glu::PRECISION_LOWP ? 2 : 1024; in iterate() local
196 const int minInt = -de::min(numValues/2, maxInt); in iterate()
200 values[ndx] = float(minInt + (ndx % (maxInt-minInt+1))); in iterate()
214 const int maxInt = m_precision == glu::PRECISION_LOWP ? 64 : 1024; in iterate() local
215 const int minInt = -de::min(numValues/2, maxInt); in iterate()
219 values[ndx] = minInt + (ndx % (maxInt-minInt+1)); in iterate()
233 const deUint32 maxInt = m_precision == glu::PRECISION_LOWP ? 128 : 1024; in iterate() local
237 values[ndx] = ndx % (maxInt+1); in iterate()
269 const int maxInt = m_precision == glu::PRECISION_LOWP ? 2 : 1024; in iterate() local
270 const int minInt = -de::min(numValues/2, maxInt); in iterate()
[all …]
/third_party/node/deps/npm/node_modules/punycode/
Dpunycode.js26 maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
288 if (digit >= base || digit > floor((maxInt - i) / w)) {
300 if (w > floor(maxInt / baseMinusT)) {
313 if (floor(i / out) > maxInt - n) {
389 for (m = maxInt, j = 0; j < inputLength; ++j) {
399 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
409 if (currentValue < n && ++delta > maxInt) {
/third_party/node/deps/npm/node_modules/psl/dist/
Dpsl.js301 maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
563 if (digit >= base || digit > floor((maxInt - i) / w)) {
575 if (w > floor(maxInt / baseMinusT)) {
588 if (floor(i / out) > maxInt - n) {
664 for (m = maxInt, j = 0; j < inputLength; ++j) {
674 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
684 if (currentValue < n && ++delta > maxInt) {
/third_party/flutter/skia/tests/
DFloatingPointTextureTest.cpp29 void runFPTest(skiatest::Reporter* reporter, GrContext* context, T min, T max, T epsilon, T maxInt, in runFPTest() argument
45 controlPixelData[i + 3] = maxInt; in runFPTest()
/third_party/skia/tests/
DFloatingPointTextureTest.cpp32 T min, T max, T epsilon, T maxInt, in runFPTest() argument
48 controlPixelData[i + 3] = maxInt; in runFPTest()

1234