Home
last modified time | relevance | path

Searched refs:rounder (Results 1 – 25 of 45) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DUnitsRouter.java87 Precision rounder = micros == null ? null : micros.rounder; in route() local
100 if (rounder != null && rounder instanceof Precision.BogusRounder) { in route()
101 Precision.BogusRounder bogus = (Precision.BogusRounder)rounder; in route()
103 rounder = bogus.into(parseSkeletonToPrecision(converterPreference.precision)); in route()
108 rounder = bogus.into(Precision.integer().withMinDigits(2)); in route()
113 micros.rounder = rounder; in route()
116 converterPreference.converter.convert(quantity, rounder), in route()
DComplexUnitsConverter.java108 public List<Measure> convert(BigDecimal quantity, Precision rounder) { in convert() argument
145 if (rounder == null) { in convert()
153 rounder.apply(quant); in convert()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsRouter.java85 Precision rounder = micros == null ? null : micros.rounder; in route() local
98 if (rounder != null && rounder instanceof Precision.BogusRounder) { in route()
99 Precision.BogusRounder bogus = (Precision.BogusRounder)rounder; in route()
101 rounder = bogus.into(parseSkeletonToPrecision(converterPreference.precision)); in route()
106 rounder = bogus.into(Precision.integer().withMinDigits(2)); in route()
111 micros.rounder = rounder; in route()
114 converterPreference.converter.convert(quantity, rounder), in route()
DComplexUnitsConverter.java106 public List<Measure> convert(BigDecimal quantity, Precision rounder) { in convert() argument
143 if (rounder == null) { in convert()
151 rounder.apply(quant); in convert()
/external/icu/icu4c/source/i18n/
Dunits_router.cpp95 RouteResult UnitsRouter::route(double quantity, icu::number::impl::RoundingImpl *rounder, UErrorCod… in route() argument
108 if (rounder != nullptr && rounder->fPrecision.isBogus()) { in route()
110 rounder->fPrecision = parseSkeletonToPrecision(converterPreference->precision, status); in route()
115 rounder->fPrecision = Precision::integer().withMinDigits(2); in route()
119 return RouteResult(converterPreference->converter.convert(quantity, rounder, status), in route()
Dnumber_scientific.cpp135 if (fSettings.fRequireMinInt && micros.rounder.isSignificantDigits()) { in processQuantity()
137 micros.rounder.apply(quantity, fSettings.fEngineeringInterval, status); in processQuantity()
140 micros.rounder.apply(quantity, status); in processQuantity()
144 exponent = -micros.rounder.chooseMultiplierAndApply(quantity, *this, status); in processQuantity()
158 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
Dnumber_utils.h90 const RoundingImpl& rounder, in getPluralSafe() argument
96 rounder.apply(copy, status); in getPluralSafe()
Dunits_complexconverter.cpp111 icu::number::impl::RoundingImpl *rounder, in convert() argument
155 if (rounder == nullptr) { in convert()
164 rounder->apply(quant, status); in convert()
Dnumber_patternmodifier.cpp129 micros.rounder.apply(quantity, status); in processQuantity()
141 … StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, rules, quantity, status); in applyToMicros()
168 micros.rounder.apply(fq, status); in processQuantity()
176 StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, fRules, fq, status); in processQuantity()
Dnumber_compact.cpp291 micros.rounder.apply(quantity, status); in processQuantity()
294 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data, status); in processQuantity()
337 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
Dnumber_usageprefs.cpp161 …const units::RouteResult routed = fUnitsRouter.route(quantity.toDouble(), &micros.rounder, status); in processQuantity()
200 fUnitConverter->convert(quantity.toDouble(), &micros.rounder, status); in processQuantity()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dpool_allocator_test.cc239 Pow2Rounder rounder; in TEST() local
240 EXPECT_EQ(1, rounder.RoundUp(1)); in TEST()
241 EXPECT_EQ(2, rounder.RoundUp(2)); in TEST()
242 EXPECT_EQ(16, rounder.RoundUp(9)); in TEST()
243 EXPECT_EQ(16, rounder.RoundUp(16)); in TEST()
244 EXPECT_EQ(65536, rounder.RoundUp(41234)); in TEST()
245 EXPECT_EQ(65536, rounder.RoundUp(65535)); in TEST()
246 EXPECT_EQ(65536, rounder.RoundUp(65536)); in TEST()
/external/webp/src/dsp/
Drescaler_sse2.c119 const __m128i rounder = _mm_set_epi32(0, ROUNDER, 0, ROUNDER); in RescalerImportRowShrink_SSE2() local
155 const __m128i E1 = _mm_add_epi64(D1, rounder); in RescalerImportRowShrink_SSE2()
156 const __m128i E2 = _mm_add_epi64(D2, rounder); in RescalerImportRowShrink_SSE2()
200 const __m128i rounder = _mm_set_epi32(0, ROUNDER, 0, ROUNDER); in ProcessRow_SSE2() local
206 const __m128i C0 = _mm_add_epi64(B0, rounder); in ProcessRow_SSE2()
207 const __m128i C1 = _mm_add_epi64(B1, rounder); in ProcessRow_SSE2()
208 const __m128i C2 = _mm_add_epi64(B2, rounder); in ProcessRow_SSE2()
209 const __m128i C3 = _mm_add_epi64(B3, rounder); in ProcessRow_SSE2()
255 const __m128i rounder = _mm_set_epi32(0, ROUNDER, 0, ROUNDER); in RescalerExportRowExpand_SSE2() local
265 const __m128i D0 = _mm_add_epi64(C0, rounder); in RescalerExportRowExpand_SSE2()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScientificNotation.java156 assert micros.rounder != null; in processQuantity()
167 if (notation.requireMinInt && micros.rounder instanceof SignificantRounderImpl) { in processQuantity()
169 ((SignificantRounderImpl) micros.rounder).apply(quantity, in processQuantity()
173 micros.rounder.apply(quantity); in processQuantity()
177 exponent = -micros.rounder.chooseMultiplierAndApply(quantity, this); in processQuantity()
199 micros.rounder = null; in processQuantity()
DCompactNotation.java127 assert micros.rounder != null; in processQuantity()
134 micros.rounder.apply(quantity); in processQuantity()
136 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity()
166 micros.rounder = null; in processQuantity()
DNumberFormatterImpl.java290 micros.rounder = macros.precision; in macrosToMicroGenerator()
292 micros.rounder = Precision.COMPACT_STRATEGY; in macrosToMicroGenerator()
294 micros.rounder = Precision.MONETARY_STANDARD; in macrosToMicroGenerator()
297 micros.rounder = Precision.BOGUS_PRECISION; in macrosToMicroGenerator()
299 micros.rounder = Precision.DEFAULT_MAX_FRAC_6; in macrosToMicroGenerator()
302 micros.rounder = micros.rounder.withMode( in macrosToMicroGenerator()
305 micros.rounder = micros.rounder.withLocaleData(currency); in macrosToMicroGenerator()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScientificNotation.java158 assert micros.rounder != null; in processQuantity()
169 if (notation.requireMinInt && micros.rounder instanceof SignificantRounderImpl) { in processQuantity()
171 ((SignificantRounderImpl) micros.rounder).apply(quantity, in processQuantity()
175 micros.rounder.apply(quantity); in processQuantity()
179 exponent = -micros.rounder.chooseMultiplierAndApply(quantity, this); in processQuantity()
201 micros.rounder = null; in processQuantity()
DCompactNotation.java127 assert micros.rounder != null; in processQuantity()
134 micros.rounder.apply(quantity); in processQuantity()
136 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity()
166 micros.rounder = null; in processQuantity()
DNumberFormatterImpl.java289 micros.rounder = macros.precision; in macrosToMicroGenerator()
291 micros.rounder = Precision.COMPACT_STRATEGY; in macrosToMicroGenerator()
293 micros.rounder = Precision.MONETARY_STANDARD; in macrosToMicroGenerator()
296 micros.rounder = Precision.BOGUS_PRECISION; in macrosToMicroGenerator()
298 micros.rounder = Precision.DEFAULT_MAX_FRAC_6; in macrosToMicroGenerator()
301 micros.rounder = micros.rounder.withMode( in macrosToMicroGenerator()
304 micros.rounder = micros.rounder.withLocaleData(currency); in macrosToMicroGenerator()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMutablePatternModifier.java234 if (micros.rounder != null) { in processQuantity()
235 micros.rounder.apply(quantity); in processQuantity()
248 … StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, quantity); in applyToMicros()
274 if (micros.rounder != null) { in processQuantity()
275 micros.rounder.apply(fq); in processQuantity()
281 StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, fq); in processQuantity()
DRoundingUtils.java230 Precision rounder, PluralRules rules, DecimalQuantity dq) { in getPluralSafe() argument
231 if (rounder == null) { in getPluralSafe()
236 rounder.apply(copy); in getPluralSafe()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMutablePatternModifier.java239 if (micros.rounder != null) { in processQuantity()
240 micros.rounder.apply(quantity); in processQuantity()
253 … StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, quantity); in applyToMicros()
279 if (micros.rounder != null) { in processQuantity()
280 micros.rounder.apply(fq); in processQuantity()
286 StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, fq); in processQuantity()
DRoundingUtils.java232 Precision rounder, PluralRules rules, DecimalQuantity dq) { in getPluralSafe() argument
233 if (rounder == null) { in getPluralSafe()
238 rounder.apply(copy); in getPluralSafe()
DMicroProps.java46 public Precision rounder; field in MicroProps
/external/icu/libicu/cts_headers/
Dnumber_utils.h90 const RoundingImpl& rounder, in getPluralSafe() argument
96 rounder.apply(copy, status); in getPluralSafe()

12