/external/icu/android_icu4j/src/main/java/android/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() 65 public IntegerWidth truncateAt(int maxInt) { in truncateAt() argument 66 if (maxInt == this.maxInt) { in truncateAt() 68 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt() 69 return new IntegerWidth(minInt, maxInt); in truncateAt() 70 } else if (minInt == 1 && maxInt == -1) { in truncateAt() 72 } 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 | 1367 int maxInt; in parseIntegerWidthOption() local 1369 maxInt = -1; in parseIntegerWidthOption() 1372 maxInt = 0; in parseIntegerWidthOption() 1375 if (maxInt != -1 && segment.charAt(offset) == '#') { in parseIntegerWidthOption() 1376 maxInt++; in parseIntegerWidthOption() 1390 if (maxInt != -1) { in parseIntegerWidthOption() 1391 maxInt += minInt; in parseIntegerWidthOption() 1397 if (maxInt == -1) { in parseIntegerWidthOption() 1400 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1404 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument [all …]
|
D | NumberFormatterImpl.java | 107 if (micros.integerWidth.maxInt == -1) { in preProcess() 111 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcess() 120 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe() 124 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcessUnsafe()
|
/external/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() 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 …]
|
D | NumberSkeletonImpl.java | 1366 int maxInt; in parseIntegerWidthOption() local 1368 maxInt = -1; in parseIntegerWidthOption() 1371 maxInt = 0; in parseIntegerWidthOption() 1374 if (maxInt != -1 && segment.charAt(offset) == '#') { in parseIntegerWidthOption() 1375 maxInt++; in parseIntegerWidthOption() 1389 if (maxInt != -1) { in parseIntegerWidthOption() 1390 maxInt += minInt; in parseIntegerWidthOption() 1396 if (maxInt == -1) { in parseIntegerWidthOption() 1399 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1403 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument [all …]
|
D | NumberFormatterImpl.java | 106 if (micros.integerWidth.maxInt == -1) { in preProcess() 110 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcess() 119 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe() 123 inValue.applyMaxInteger(micros.integerWidth.maxInt); in preProcessUnsafe()
|
/external/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() 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 | 1355 int32_t maxInt; in parseIntegerWidthOption() local 1357 maxInt = -1; in parseIntegerWidthOption() 1360 maxInt = 0; in parseIntegerWidthOption() 1363 if (maxInt != -1 && segment.charAt(offset) == u'#') { in parseIntegerWidthOption() 1364 maxInt++; in parseIntegerWidthOption() 1378 if (maxInt != -1) { in parseIntegerWidthOption() 1379 maxInt += minInt; in parseIntegerWidthOption() 1387 if (maxInt == -1) { in parseIntegerWidthOption() 1390 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption() 1394 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& s… in generateIntegerWidthOption() argument [all …]
|
D | number_decimalquantity.cpp | 157 void DecimalQuantity::applyMaxInteger(int32_t maxInt) { in applyMaxInteger() argument 159 U_ASSERT(maxInt >= 0); in applyMaxInteger() 165 if (maxInt <= scale) { in applyMaxInteger() 171 if (maxInt <= magnitude) { in applyMaxInteger() 172 popFromLeft(magnitude - maxInt + 1); in applyMaxInteger()
|
/external/icu/libicu/cts_headers/ |
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()
|
/external/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()
|
/external/deqp/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 …]
|
/external/skia/tests/ |
D | FloatingPointTextureTest.cpp | 32 T min, T max, T epsilon, T maxInt, in runFPTest() argument 48 controlPixelData[i + 3] = maxInt; in runFPTest()
|
/external/skqp/tests/ |
D | FloatingPointTextureTest.cpp | 29 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()
|
/external/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()
|
D | DecimalQuantity.java | 55 public void applyMaxInteger(int maxInt); in applyMaxInteger() argument
|
D | PatternStringUtils.java | 88 int maxInt = Math.min(properties.getMaximumIntegerDigits(), dosMax); in propertiesToPatternString() local 145 m0 = (maxInt != dosMax) ? Math.max(maxInt, m0) - 1 : m0 - 1; in propertiesToPatternString()
|
/external/icu/android_icu4j/src/main/java/android/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()
|
D | DecimalQuantity.java | 57 public void applyMaxInteger(int maxInt); in applyMaxInteger() argument
|
D | PatternStringUtils.java | 93 int maxInt = Math.min(properties.getMaximumIntegerDigits(), dosMax); in propertiesToPatternString() local 150 m0 = (maxInt != dosMax) ? Math.max(maxInt, m0) - 1 : m0 - 1; in propertiesToPatternString()
|
/external/jsoncpp/src/lib_json/ |
D | json_value.cpp | 118 if (length >= static_cast<size_t>(Value::maxInt)) in duplicateStringValue() 119 length = Value::maxInt - 1; in duplicateStringValue() 137 JSON_ASSERT_MESSAGE(length <= static_cast<unsigned>(Value::maxInt) - in duplicateAndPrefixStringValue() 663 JSON_ASSERT_MESSAGE(InRange(value_.real_, minInt, maxInt), in asInt() 836 (type() == realValue && InRange(value_.real_, minInt, maxInt)) || in isConvertibleTo() 1261 return value_.int_ >= minInt && value_.int_ <= maxInt; in isInt() 1266 return value_.uint_ <= UInt(maxInt); in isInt() 1268 return value_.real_ >= minInt && value_.real_ <= maxInt && in isInt()
|
/external/python/pyasn1-modules/pyasn1_modules/ |
D | rfc2251.py | 21 maxInt = univ.Integer(2147483647) variable 269 … univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, maxInt))), 271 … univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, maxInt))), 528 0, maxInt
|