Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dpool_allocator_test.cc235 Pow2Rounder rounder; in TEST() local
236 EXPECT_EQ(1, rounder.RoundUp(1)); in TEST()
237 EXPECT_EQ(2, rounder.RoundUp(2)); in TEST()
238 EXPECT_EQ(16, rounder.RoundUp(9)); in TEST()
239 EXPECT_EQ(16, rounder.RoundUp(16)); in TEST()
240 EXPECT_EQ(65536, rounder.RoundUp(41234)); in TEST()
241 EXPECT_EQ(65536, rounder.RoundUp(65535)); in TEST()
242 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/icu4c/source/i18n/
Dnumber_scientific.cpp130 if (fSettings.fRequireMinInt && micros.rounder.isSignificantDigits()) { in processQuantity()
132 micros.rounder.apply(quantity, fSettings.fEngineeringInterval, status); in processQuantity()
135 micros.rounder.apply(quantity, status); in processQuantity()
139 exponent = -micros.rounder.chooseMultiplierAndApply(quantity, *this, status); in processQuantity()
148 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
Dnumber_compact.cpp279 micros.rounder.apply(quantity, status); in processQuantity()
282 int32_t multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data, status); in processQuantity()
317 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
Dnumber_microprops.h28 RoundingImpl rounder; member
Dnumber_formatimpl.cpp114 microsOut.rounder.apply(inValue, status); in preProcess()
127 fMicros.rounder.apply(inValue, status); in preProcessUnsafe()
289 fMicros.rounder = {precision, roundingMode, currency, status}; in macrosToMicroGenerator()
Dnumber_patternmodifier.cpp168 micros.rounder.apply(copy, status); in processQuantity()
Dnumber_longnames.cpp278 micros.rounder.apply(copy, status); in processQuantity()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScientificNotation.java160 assert micros.rounder != null; in processQuantity()
165 if (notation.requireMinInt && micros.rounder instanceof SignificantRounderImpl) { in processQuantity()
167 ((SignificantRounderImpl) micros.rounder).apply(quantity, in processQuantity()
171 micros.rounder.apply(quantity); in processQuantity()
175 exponent = -micros.rounder.chooseMultiplierAndApply(quantity, this); in processQuantity()
192 micros.rounder = Precision.constructPassThrough(); in processQuantity()
DNumberFormatterImpl.java101 micros.rounder.apply(inValue); in preProcess()
113 micros.rounder.apply(inValue); in preProcessUnsafe()
256 micros.rounder = macros.precision; in macrosToMicroGenerator()
258 micros.rounder = Precision.COMPACT_STRATEGY; in macrosToMicroGenerator()
260 micros.rounder = Precision.MONETARY_STANDARD; in macrosToMicroGenerator()
262 micros.rounder = Precision.DEFAULT_MAX_FRAC_6; in macrosToMicroGenerator()
265 micros.rounder = micros.rounder.withMode(macros.roundingMode); in macrosToMicroGenerator()
267 micros.rounder = micros.rounder.withLocaleData(currency); in macrosToMicroGenerator()
DCompactNotation.java123 assert micros.rounder != null; in processQuantity()
129 micros.rounder.apply(quantity); in processQuantity()
132 int multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity()
156 micros.rounder = Precision.constructPassThrough(); in processQuantity()
DNumberFormatterSettings.java217 public T rounding(Precision rounder) { in rounding() argument
218 return precision(rounder); in rounding()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScientificNotation.java162 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()
194 micros.rounder = Precision.constructPassThrough(); in processQuantity()
DNumberFormatterImpl.java100 micros.rounder.apply(inValue); in preProcess()
112 micros.rounder.apply(inValue); in preProcessUnsafe()
255 micros.rounder = macros.precision; in macrosToMicroGenerator()
257 micros.rounder = Precision.COMPACT_STRATEGY; in macrosToMicroGenerator()
259 micros.rounder = Precision.MONETARY_STANDARD; in macrosToMicroGenerator()
261 micros.rounder = Precision.DEFAULT_MAX_FRAC_6; in macrosToMicroGenerator()
264 micros.rounder = micros.rounder.withMode(macros.roundingMode); in macrosToMicroGenerator()
266 micros.rounder = micros.rounder.withLocaleData(currency); in macrosToMicroGenerator()
DCompactNotation.java122 assert micros.rounder != null; in processQuantity()
128 micros.rounder.apply(quantity); in processQuantity()
131 int multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity()
155 micros.rounder = Precision.constructPassThrough(); in processQuantity()
DNumberFormatterSettings.java220 public T rounding(Precision rounder) { in rounding() argument
221 return precision(rounder); in rounding()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMicroProps.java27 public Precision rounder; field in MicroProps
DMutablePatternModifier.java278 micros.rounder.apply(copy); in processQuantity()
DLongNameHandler.java293 micros.rounder.apply(copy); in processQuantity()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java23 public Precision rounder; field in MicroProps
DMutablePatternModifier.java273 micros.rounder.apply(copy); in processQuantity()
DLongNameHandler.java289 micros.rounder.apply(copy); in processQuantity()
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h1724 Derived rounding(const Rounder& rounder) const & { in rounding() argument
1725 return precision(rounder); in rounding()
/external/jline/src/src/test/resources/jline/example/
Denglish.gz
/external/sqlite/dist/orig/
Dsqlite3.c26060 double rounder; /* Used for rounding floating point values */
26335 for(idx=precision&0xfff, rounder=0.5; idx>0; idx--, rounder*=0.1){}
26336 if( xtype==etFLOAT ) realvalue += rounder;
26366 realvalue += rounder;

12