Home
last modified time | relevance | path

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

123

/external/icu/android_icu4j/src/main/java/android/icu/number/
DIntegerWidth.java23 final int maxInt; field in IntegerWidth
25 private IntegerWidth(int minInt, int maxInt) { in IntegerWidth() argument
27 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.java137 int maxInt = properties.getMaximumIntegerDigits(); in oldToNew() local
170 maxInt = maxInt < 0 ? -1 : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
176 maxInt = maxInt < 0 ? -1 in oldToNew()
177 … : maxInt < minInt ? minInt : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
206 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
243 if (maxInt > 8) { in oldToNew()
246 maxInt = minInt; in oldToNew()
247 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
248 } else if (maxInt > minInt && minInt > 1) { in oldToNew()
251 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
[all …]
DNumberSkeletonImpl.java1159 int maxInt; in parseIntegerWidthOption() local
1161 maxInt = -1; in parseIntegerWidthOption()
1164 maxInt = 0; in parseIntegerWidthOption()
1168 maxInt++; in parseIntegerWidthOption()
1182 if (maxInt != -1) { in parseIntegerWidthOption()
1183 maxInt += minInt; in parseIntegerWidthOption()
1189 if (maxInt == -1) { in parseIntegerWidthOption()
1192 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1196 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument
1197 if (maxInt == -1) { in generateIntegerWidthOption()
[all …]
DNumberFormatterImpl.java102 if (micros.integerWidth.maxInt == -1) { in preProcess()
105 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcess()
114 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe()
117 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcessUnsafe()
/external/icu/icu4j/main/classes/core/src/com/ibm/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()
68 public IntegerWidth truncateAt(int maxInt) { in truncateAt() argument
69 if (maxInt == this.maxInt) { in truncateAt()
71 } else if (maxInt >= 0 && maxInt <= RoundingUtils.MAX_INT_FRAC_SIG && maxInt >= minInt) { in truncateAt()
72 return new IntegerWidth(minInt, maxInt); in truncateAt()
73 } else if (minInt == 1 && maxInt == -1) { in truncateAt()
75 } else if (maxInt == -1) { in truncateAt()
DNumberPropertyMapper.java136 int maxInt = properties.getMaximumIntegerDigits(); in oldToNew() local
169 maxInt = maxInt < 0 ? -1 : maxInt > RoundingUtils.MAX_INT_FRAC_SIG ? -1 : maxInt; in oldToNew()
175 maxInt = maxInt < 0 ? -1 in oldToNew()
176 … : 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()
250 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in oldToNew()
[all …]
DNumberSkeletonImpl.java1158 int maxInt; in parseIntegerWidthOption() local
1160 maxInt = -1; in parseIntegerWidthOption()
1163 maxInt = 0; in parseIntegerWidthOption()
1167 maxInt++; in parseIntegerWidthOption()
1181 if (maxInt != -1) { in parseIntegerWidthOption()
1182 maxInt += minInt; in parseIntegerWidthOption()
1188 if (maxInt == -1) { in parseIntegerWidthOption()
1191 macros.integerWidth = IntegerWidth.zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1195 private static void generateIntegerWidthOption(int minInt, int maxInt, StringBuilder sb) { in generateIntegerWidthOption() argument
1196 if (maxInt == -1) { in generateIntegerWidthOption()
[all …]
DNumberFormatterImpl.java101 if (micros.integerWidth.maxInt == -1) { in preProcess()
104 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcess()
113 if (micros.integerWidth.maxInt == -1) { in preProcessUnsafe()
116 inValue.setIntegerLength(micros.integerWidth.minInt, micros.integerWidth.maxInt); in preProcessUnsafe()
/external/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.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 …]
Dnumber_skeletons.cpp1179 int32_t maxInt; in parseIntegerWidthOption() local
1181 maxInt = -1; in parseIntegerWidthOption()
1184 maxInt = 0; in parseIntegerWidthOption()
1188 maxInt++; in parseIntegerWidthOption()
1202 if (maxInt != -1) { in parseIntegerWidthOption()
1203 maxInt += minInt; in parseIntegerWidthOption()
1211 if (maxInt == -1) { in parseIntegerWidthOption()
1214 macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt); in parseIntegerWidthOption()
1218 void blueprint_helpers::generateIntegerWidthOption(int32_t minInt, int32_t maxInt, UnicodeString& s… in generateIntegerWidthOption() argument
1220 if (maxInt == -1) { in generateIntegerWidthOption()
[all …]
/external/icu/icu4c/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()
/external/syzkaller/vendor/google.golang.org/grpc/
Dservice_config.go31 const maxInt = int(^uint(0) >> 1) const
188 if *m.MaxRequestMessageBytes > int64(maxInt) {
189 mc.MaxReqSize = newInt(maxInt)
195 if *m.MaxResponseMessageBytes > int64(maxInt) {
196 mc.MaxRespSize = newInt(maxInt)
/external/deqp/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 …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java325 public void setIntegerLength(int minInt, int maxInt) {
328 maxInt = Math.max(0, maxInt);
331 if (maxInt < minInt) {
332 minInt = maxInt;
337 lOptPos = maxInt;
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/impl/number/
DDecimalQuantity_SimpleStorage.java322 public void setIntegerLength(int minInt, int maxInt) {
325 maxInt = Math.max(0, maxInt);
328 if (maxInt < minInt) {
329 minInt = maxInt;
334 lOptPos = maxInt;
/external/skqp/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()
/external/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()
/external/jsoncpp/src/lib_json/
Djson_value.cpp41 const Int Value::maxInt = Int(UInt(-1) / 2); member in Json::Value
93 if (length >= (unsigned)Value::maxInt) in duplicateStringValue()
94 length = Value::maxInt - 1; in duplicateStringValue()
562 JSON_ASSERT_MESSAGE(InRange(value_.real_, minInt, maxInt), in asInt()
731 (type_ == realValue && InRange(value_.real_, minInt, maxInt)) || in isConvertibleTo()
1099 return value_.int_ >= minInt && value_.int_ <= maxInt; in isInt()
1101 return value_.uint_ <= UInt(maxInt); in isInt()
1103 return value_.real_ >= minInt && value_.real_ <= maxInt && in isInt()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPatternStringUtils.java41 int maxInt = Math.min(properties.getMaximumIntegerDigits(), dosMax); in propertiesToPatternString() local
122 m0 = (maxInt != dosMax) ? Math.max(maxInt, m0) - 1 : m0 - 1; in propertiesToPatternString()
DDecimalQuantity.java38 public void setIntegerLength(int minInt, int maxInt); in setIntegerLength() argument
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPatternStringUtils.java43 int maxInt = Math.min(properties.getMaximumIntegerDigits(), dosMax); in propertiesToPatternString() local
124 m0 = (maxInt != dosMax) ? Math.max(maxInt, m0) - 1 : m0 - 1; in propertiesToPatternString()
DDecimalQuantity.java40 public void setIntegerLength(int minInt, int maxInt); in setIntegerLength() argument
DDecimalQuantity_AbstractBCD.java142 public void setIntegerLength(int minInt, int maxInt) { in setIntegerLength() argument
145 assert maxInt >= minInt; in setIntegerLength()
155 lOptPos = maxInt; in setIntegerLength()
/external/python/pyasn1-modules/pyasn1_modules/
Drfc2251.py21 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

123