/external/icu/android_icu4j/src/main/java/android/icu/impl/units/ |
D | UnitsRouter.java | 90 Precision rounder = micros == null ? null : micros.rounder; in route() local 103 if (rounder != null && rounder instanceof Precision.BogusRounder) { in route() 104 Precision.BogusRounder bogus = (Precision.BogusRounder)rounder; in route() 106 rounder = bogus.into(parseSkeletonToPrecision(converterPreference.precision)); in route() 111 rounder = bogus.into(Precision.integer().withMinDigits(2)); in route() 116 micros.rounder = rounder; in route() 119 converterPreference.converter.convert(quantity, rounder), in route()
|
D | ComplexUnitsConverter.java | 174 public ComplexConverterResult convert(BigDecimal quantity, Precision rounder) { in convert() argument 212 quantity = applyRounder(intValues, quantity, rounder); in convert() 243 …ivate BigDecimal applyRounder(List<BigInteger> intValues, BigDecimal quantity, Precision rounder) { in applyRounder() argument 244 if (rounder == null) { in applyRounder() 249 rounder.apply(quantityBCD); in applyRounder()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ |
D | UnitsRouter.java | 88 Precision rounder = micros == null ? null : micros.rounder; in route() local 101 if (rounder != null && rounder instanceof Precision.BogusRounder) { in route() 102 Precision.BogusRounder bogus = (Precision.BogusRounder)rounder; in route() 104 rounder = bogus.into(parseSkeletonToPrecision(converterPreference.precision)); in route() 109 rounder = bogus.into(Precision.integer().withMinDigits(2)); in route() 114 micros.rounder = rounder; in route() 117 converterPreference.converter.convert(quantity, rounder), in route()
|
D | ComplexUnitsConverter.java | 169 public ComplexConverterResult convert(BigDecimal quantity, Precision rounder) { in convert() argument 207 quantity = applyRounder(intValues, quantity, rounder); in convert() 238 …ivate BigDecimal applyRounder(List<BigInteger> intValues, BigDecimal quantity, Precision rounder) { in applyRounder() argument 239 if (rounder == null) { in applyRounder() 244 rounder.apply(quantityBCD); in applyRounder()
|
/external/icu/icu4c/source/i18n/ |
D | units_router.cpp | 112 RouteResult UnitsRouter::route(double quantity, icu::number::impl::RoundingImpl *rounder, UErrorCod… in route() argument 125 if (rounder != nullptr && rounder->fPrecision.isBogus()) { in route() 127 rounder->fPrecision = parseSkeletonToPrecision(converterPreference->precision, status); in route() 132 rounder->fPrecision = Precision::integer().withMinDigits(2); in route() 136 return RouteResult(converterPreference->converter.convert(quantity, rounder, status), in route()
|
D | number_scientific.cpp | 135 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()
|
D | units_complexconverter.cpp | 141 icu::number::impl::RoundingImpl *rounder, in convert() argument 189 applyRounder(intValues, quantity, rounder, status); in convert() 224 icu::number::impl::RoundingImpl *rounder, in applyRounder() argument 232 if (rounder == nullptr) { in applyRounder() 239 rounder->apply(decimalQuantity, status); in applyRounder()
|
D | units_complexconverter.h | 109 convert(double quantity, icu::number::impl::RoundingImpl *rounder, UErrorCode &status) const; 128 icu::number::impl::RoundingImpl *rounder, UErrorCode &status) const;
|
/external/cronet/third_party/icu/source/i18n/ |
D | units_router.cpp | 112 RouteResult UnitsRouter::route(double quantity, icu::number::impl::RoundingImpl *rounder, UErrorCod… in route() argument 125 if (rounder != nullptr && rounder->fPrecision.isBogus()) { in route() 127 rounder->fPrecision = parseSkeletonToPrecision(converterPreference->precision, status); in route() 132 rounder->fPrecision = Precision::integer().withMinDigits(2); in route() 136 return RouteResult(converterPreference->converter.convert(quantity, rounder, status), in route()
|
D | number_scientific.cpp | 135 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()
|
D | units_complexconverter.cpp | 141 icu::number::impl::RoundingImpl *rounder, in convert() argument 189 applyRounder(intValues, quantity, rounder, status); in convert() 224 icu::number::impl::RoundingImpl *rounder, in applyRounder() argument 232 if (rounder == nullptr) { in applyRounder() 239 rounder->apply(decimalQuantity, status); in applyRounder()
|
D | number_utils.h | 90 const RoundingImpl& rounder, in getPluralSafe() argument 96 rounder.apply(copy, status); in getPluralSafe()
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | pool_allocator_test.cc | 239 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/ |
D | rescaler_sse2.c | 119 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/ |
D | ScientificNotation.java | 156 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()
|
D | CompactNotation.java | 126 assert micros.rounder != null; in processQuantity() 133 micros.rounder.apply(quantity); in processQuantity() 135 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 164 micros.rounder = null; in processQuantity()
|
D | NumberFormatterImpl.java | 294 micros.rounder = macros.precision; in macrosToMicroGenerator() 296 micros.rounder = Precision.COMPACT_STRATEGY; in macrosToMicroGenerator() 298 micros.rounder = Precision.MONETARY_STANDARD; in macrosToMicroGenerator() 301 micros.rounder = Precision.BOGUS_PRECISION; in macrosToMicroGenerator() 303 micros.rounder = Precision.DEFAULT_MAX_FRAC_6; in macrosToMicroGenerator() 306 micros.rounder = micros.rounder.withMode( in macrosToMicroGenerator() 309 micros.rounder = micros.rounder.withLocaleData(currency); in macrosToMicroGenerator()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | ScientificNotation.java | 158 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()
|
D | CompactNotation.java | 126 assert micros.rounder != null; in processQuantity() 133 micros.rounder.apply(quantity); in processQuantity() 135 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 164 micros.rounder = null; in processQuantity()
|
D | NumberFormatterImpl.java | 293 micros.rounder = macros.precision; in macrosToMicroGenerator() 295 micros.rounder = Precision.COMPACT_STRATEGY; in macrosToMicroGenerator() 297 micros.rounder = Precision.MONETARY_STANDARD; in macrosToMicroGenerator() 300 micros.rounder = Precision.BOGUS_PRECISION; in macrosToMicroGenerator() 302 micros.rounder = Precision.DEFAULT_MAX_FRAC_6; in macrosToMicroGenerator() 305 micros.rounder = micros.rounder.withMode( in macrosToMicroGenerator() 308 micros.rounder = micros.rounder.withLocaleData(currency); in macrosToMicroGenerator()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MutablePatternModifier.java | 243 if (micros.rounder != null) { in processQuantity() 244 micros.rounder.apply(quantity); in processQuantity() 257 … StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, quantity); in applyToMicros() 283 if (micros.rounder != null) { in processQuantity() 284 micros.rounder.apply(fq); in processQuantity() 290 StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, fq); in processQuantity()
|
D | RoundingUtils.java | 232 Precision rounder, PluralRules rules, DecimalQuantity dq) { in getPluralSafe() argument 233 if (rounder == null) { in getPluralSafe() 238 rounder.apply(copy); in getPluralSafe()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MutablePatternModifier.java | 238 if (micros.rounder != null) { in processQuantity() 239 micros.rounder.apply(quantity); in processQuantity() 252 … StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, quantity); in applyToMicros() 278 if (micros.rounder != null) { in processQuantity() 279 micros.rounder.apply(fq); in processQuantity() 285 StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, fq); in processQuantity()
|
D | RoundingUtils.java | 230 Precision rounder, PluralRules rules, DecimalQuantity dq) { in getPluralSafe() argument 231 if (rounder == null) { in getPluralSafe() 236 rounder.apply(copy); in getPluralSafe()
|
/external/icu/libicu/cts_headers/ |
D | units_complexconverter.h | 109 convert(double quantity, icu::number::impl::RoundingImpl *rounder, UErrorCode &status) const; 128 icu::number::impl::RoundingImpl *rounder, UErrorCode &status) const;
|