/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | IntegerWidth.java | 21 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()
|
D | NumberPropertyMapper.java | 131 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() 205 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 242 if (maxInt > 8) { in oldToNew() 245 maxInt = minInt; in oldToNew() 246 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 247 } else if (maxInt > minInt && minInt > 1) { in oldToNew() [all …]
|
D | NumberSkeletonImpl.java | 1402 int maxInt; 1404 maxInt = -1; 1407 maxInt = 0; 1410 if (maxInt != -1 && segment.charAt(offset) == '#') { 1411 maxInt++; 1425 if (maxInt != -1) { 1426 maxInt += minInt; 1432 if (maxInt == -1) { 1435 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); 1439 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
D | IntegerWidth.java | 22 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()
|
D | NumberPropertyMapper.java | 132 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 …]
|
D | NumberSkeletonImpl.java | 1308 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 …]
|
D | NumberFormatterImpl.java | 100 if (micros.integerWidth.maxInt == -1) { in preProcess() 104 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcess() 113 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe() 117 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcessUnsafe()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | number_integerwidth.cpp | 16 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()
|
D | number_mapper.cpp | 88 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() 161 static_cast<digits_t>(maxInt), in oldToNew() 199 if (maxInt > 8) { in oldToNew() 202 maxInt = minInt; in oldToNew() 203 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 204 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 207 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() [all …]
|
D | number_skeletons.cpp | 1418 int32_t maxInt; in parseIntegerWidthOption() local 1420 maxInt = -1; in parseIntegerWidthOption() 1423 maxInt = 0; in parseIntegerWidthOption() 1426 if (maxInt != -1 && segment.charAt(offset) == u'#') { in parseIntegerWidthOption() 1427 maxInt++; in parseIntegerWidthOption() 1441 if (maxInt != -1) { in parseIntegerWidthOption() 1442 maxInt += minInt; in parseIntegerWidthOption() 1450 if (maxInt == -1) { in parseIntegerWidthOption() 1453 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1457 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& s… in generateIntegerWidthOption() argument [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | number_integerwidth.cpp | 16 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()
|
D | number_mapper.cpp | 88 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 …]
|
D | number_skeletons.cpp | 1412 int32_t maxInt; in parseIntegerWidthOption() local 1414 maxInt = -1; in parseIntegerWidthOption() 1417 maxInt = 0; in parseIntegerWidthOption() 1420 if (maxInt != -1 && segment.charAt(offset) == u'#') { in parseIntegerWidthOption() 1421 maxInt++; in parseIntegerWidthOption() 1435 if (maxInt != -1) { in parseIntegerWidthOption() 1436 maxInt += minInt; in parseIntegerWidthOption() 1444 if (maxInt == -1) { in parseIntegerWidthOption() 1447 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1451 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& s… in generateIntegerWidthOption() argument [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | number_integerwidth.cpp | 16 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()
|
D | number_mapper.cpp | 88 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() 161 static_cast<digits_t>(maxInt), in oldToNew() 199 if (maxInt > 8) { in oldToNew() 202 maxInt = minInt; in oldToNew() 203 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() 204 } else if (maxInt > minInt && minInt > 1) { in oldToNew() 207 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in oldToNew() [all …]
|
D | number_skeletons.cpp | 1418 int32_t maxInt; in parseIntegerWidthOption() local 1420 maxInt = -1; in parseIntegerWidthOption() 1423 maxInt = 0; in parseIntegerWidthOption() 1426 if (maxInt != -1 && segment.charAt(offset) == u'#') { in parseIntegerWidthOption() 1427 maxInt++; in parseIntegerWidthOption() 1441 if (maxInt != -1) { in parseIntegerWidthOption() 1442 maxInt += minInt; in parseIntegerWidthOption() 1450 if (maxInt == -1) { in parseIntegerWidthOption() 1453 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1457 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& s… in generateIntegerWidthOption() argument [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | putilimp.h | 544 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/icu/icu4c/source/common/ |
D | putilimp.h | 544 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/ |
D | putilimp.h | 544 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/lib/ |
D | punycode.js | 14 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 constant 253 if (digit > floor((maxInt - i) / w)) { 265 if (w > floor(maxInt / baseMinusT)) { 278 if (floor(i / out) > maxInt - n) { 337 let m = maxInt; 347 if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) { 355 if (currentValue < n && ++delta > maxInt) {
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderSharedVarTests.cpp | 195 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/skia/tests/ |
D | FloatingPointTextureTest.cpp | 32 T min, T max, T epsilon, T maxInt, in runFPTest() argument 48 controlPixelData[i + 3] = maxInt; in runFPTest()
|
/third_party/node/test/parallel/ |
D | test-crypto-random.js | 455 const maxInt = Number.MAX_SAFE_INTEGER; constant 459 crypto.randomInt(maxInt - 5, maxInt, common.mustSucceed()); 472 () => crypto.randomInt(maxInt + 1, common.mustNotCall()), 477 `${common.invalidArgTypeHelper(maxInt + 1)}`,
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 146 public void applyMaxInteger(int maxInt) { in applyMaxInteger() argument 148 assert maxInt >= 0; in applyMaxInteger() local 154 if (maxInt <= scale) { in applyMaxInteger() 160 if (maxInt <= magnitude) { in applyMaxInteger() 161 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | DecimalQuantity_AbstractBCD.java | 144 public void applyMaxInteger(int maxInt) { in applyMaxInteger() argument 146 assert maxInt >= 0; in applyMaxInteger() local 152 if (maxInt <= scale) { in applyMaxInteger() 158 if (maxInt <= magnitude) { in applyMaxInteger() 159 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
|