/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberFormatterImpl.java | 54 micros = new MicroProps(true); in NumberFormatterImpl() 55 microPropsGenerator = macrosToMicroGenerator(macros, micros, true); in NumberFormatterImpl() 65 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic() local 66 int length = writeNumber(micros, inValue, outString, 0); in formatStatic() 67 writeAffixes(micros, outString, 0, length); in formatStatic() 68 return micros; in formatStatic() 82 MicroProps micros = new MicroProps(false); in getPrefixSuffixStatic() local 83 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, micros, false); in getPrefixSuffixStatic() 89 final MicroProps micros; field in NumberFormatterImpl 96 MicroProps micros = preProcess(inValue); in format() local [all …]
|
D | ScientificNotation.java | 155 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 156 assert micros.rounder != null; in processQuantity() 160 micros.modInner = ConstantAffixModifier.EMPTY; in processQuantity() 161 return micros; 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() 183 micros.modInner = precomputedMods[exponent + 12]; in processQuantity() 186 micros.modInner = new ScientificModifier(exponent, this); in processQuantity() [all …]
|
D | CompactNotation.java | 126 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 127 assert micros.rounder != null; in processQuantity() 134 micros.rounder.apply(quantity); in processQuantity() 136 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 150 mod.applyToMicros(micros, quantity); in processQuantity() 157 micros.modMiddle = unsafePatternModifier; in processQuantity() 166 micros.rounder = null; in processQuantity() 168 return micros; in processQuantity()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberFormatterImpl.java | 53 micros = new MicroProps(true); in NumberFormatterImpl() 54 microPropsGenerator = macrosToMicroGenerator(macros, micros, true); in NumberFormatterImpl() 64 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic() local 65 int length = writeNumber(micros, inValue, outString, 0); in formatStatic() 66 writeAffixes(micros, outString, 0, length); in formatStatic() 67 return micros; in formatStatic() 81 MicroProps micros = new MicroProps(false); in getPrefixSuffixStatic() local 82 MicroPropsGenerator microPropsGenerator = macrosToMicroGenerator(macros, micros, false); in getPrefixSuffixStatic() 88 final MicroProps micros; field in NumberFormatterImpl 95 MicroProps micros = preProcess(inValue); in format() local [all …]
|
D | ScientificNotation.java | 157 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 158 assert micros.rounder != null; in processQuantity() 162 micros.modInner = ConstantAffixModifier.EMPTY; in processQuantity() 163 return micros; 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() 185 micros.modInner = precomputedMods[exponent + 12]; in processQuantity() 188 micros.modInner = new ScientificModifier(exponent, this); in processQuantity() [all …]
|
D | CompactNotation.java | 126 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 127 assert micros.rounder != null; in processQuantity() 134 micros.rounder.apply(quantity); in processQuantity() 136 multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 150 mod.applyToMicros(micros, quantity); in processQuantity() 157 micros.modMiddle = unsafePatternModifier; in processQuantity() 166 micros.rounder = null; in processQuantity() 168 return micros; in processQuantity()
|
/external/icu/icu4c/source/i18n/ |
D | number_usageprefs.cpp | 110 MicroProps *micros, UErrorCode status) { in mixedMeasuresToMicros() argument 111 micros->mixedMeasuresCount = measures.length() - 1; in mixedMeasuresToMicros() 112 if (micros->mixedMeasuresCount > 0) { in mixedMeasuresToMicros() 114 U_ASSERT(micros->outputUnit.getComplexity(status) == UMEASURE_UNIT_MIXED); in mixedMeasuresToMicros() 118 … const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(micros->outputUnit, temp, status); in mixedMeasuresToMicros() 128 if (micros->mixedMeasures.getCapacity() < micros->mixedMeasuresCount) { in mixedMeasuresToMicros() 129 if (micros->mixedMeasures.resize(micros->mixedMeasuresCount) == nullptr) { in mixedMeasuresToMicros() 134 for (int32_t i = 0; i < micros->mixedMeasuresCount; i++) { in mixedMeasuresToMicros() 135 micros->mixedMeasures[i] = measures[i]->getNumber().getInt64(); in mixedMeasuresToMicros() 138 micros->mixedMeasuresCount = 0; in mixedMeasuresToMicros() [all …]
|
D | number_formatimpl.cpp | 37 MicroProps& micros = impl.preProcessUnsafe(inValue, status); in formatStatic() local 39 int32_t length = writeNumber(micros, inValue, outString, 0, status); in formatStatic() 40 length += writeAffixes(micros, outString, 0, length, status); in formatStatic() 41 results->outputUnit = std::move(micros.outputUnit); in formatStatic() 60 MicroProps micros; in format() local 61 preProcess(inValue, micros, status); in format() 63 int32_t length = writeNumber(micros, inValue, outString, 0, status); in format() 64 length += writeAffixes(micros, outString, 0, length, status); in format() 65 results->outputUnit = std::move(micros.outputUnit); in format() 466 int32_t NumberFormatterImpl::writeAffixes(const MicroProps& micros, FormattedStringBuilder& string, in writeAffixes() argument [all …]
|
D | number_scientific.cpp | 121 void ScientificHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 123 fParent->processQuantity(quantity, micros, status); in processQuantity() 128 micros.modInner = µs.helpers.emptyStrongModifier; in processQuantity() 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() 148 ScientificModifier &mod = micros.helpers.scientificModifier; in processQuantity() 150 micros.modInner = &mod; in processQuantity() 158 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
|
D | number_longnames.cpp | 401 void LongNameHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 404 parent->processQuantity(quantity, micros, status); in processQuantity() 406 StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, rules, quantity, status); in processQuantity() 407 micros.modOuter = &fModifiers[pluralForm]; in processQuantity() 448 void MixedUnitLongNameHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 452 parent->processQuantity(quantity, micros, status); in processQuantity() 454 micros.modOuter = getMixedUnitModifier(quantity, micros, status); in processQuantity() 458 MicroProps µs, in getMixedUnitModifier() argument 460 if (micros.mixedMeasuresCount == 0) { in getMixedUnitModifier() 461 … U_ASSERT(micros.mixedMeasuresCount > 0); // Mixed unit: we must have more than one unit value in getMixedUnitModifier() [all …]
|
D | number_patternmodifier.cpp | 126 void ImmutablePatternModifier::processQuantity(DecimalQuantity& quantity, MicroProps& micros, in processQuantity() argument 128 parent->processQuantity(quantity, micros, status); in processQuantity() 129 micros.rounder.apply(quantity, status); in processQuantity() 130 if (micros.modMiddle != nullptr) { in processQuantity() 133 applyToMicros(micros, quantity, status); in processQuantity() 137 MicroProps& micros, const DecimalQuantity& quantity, UErrorCode& status) const { in applyToMicros() argument 139 micros.modMiddle = pm->getModifierWithoutPlural(quantity.signum()); in applyToMicros() 141 … StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, rules, quantity, status); in applyToMicros() 142 micros.modMiddle = pm->getModifier(quantity.signum(), pluralForm); in applyToMicros() 165 void MutablePatternModifier::processQuantity(DecimalQuantity& fq, MicroProps& micros, in processQuantity() argument [all …]
|
D | number_microprops.h | 151 void processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() 155 if (this == µs) { in processQuantity() 158 micros.exhausted = true; in processQuantity() 163 micros = *this; in processQuantity()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MixedUnitLongNameHandler.java | 105 MicroProps micros; in processQuantity() local 106 micros = parent.processQuantity(quantity); in processQuantity() 107 micros.modOuter = getMixedUnitModifier(quantity, micros); in processQuantity() 108 return micros; in processQuantity() 119 public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros) { in processQuantityWithMicros() argument 121 micros.modOuter = getMixedUnitModifier(quantity, micros); in processQuantityWithMicros() 122 return micros; in processQuantityWithMicros() 145 private Modifier getMixedUnitModifier(DecimalQuantity quantity, MicroProps micros) { in getMixedUnitModifier() argument 148 if (micros.mixedMeasures.size() == 0) { in getMixedUnitModifier() 173 for (int i = 0; i < micros.mixedMeasures.size(); i++) { in getMixedUnitModifier() [all …]
|
D | MutablePatternModifier.java | 238 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 239 if (micros.rounder != null) { in processQuantity() 240 micros.rounder.apply(quantity); in processQuantity() 242 if (micros.modMiddle != null) { in processQuantity() 243 return micros; in processQuantity() 245 applyToMicros(micros, quantity); in processQuantity() 246 return micros; in processQuantity() 249 public void applyToMicros(MicroProps micros, DecimalQuantity quantity) { in applyToMicros() argument 251 micros.modMiddle = pm.getModifierWithoutPlural(quantity.signum()); in applyToMicros() 253 … StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, quantity); in applyToMicros() [all …]
|
D | UsagePrefsHandler.java | 77 MicroProps micros = this.fParent.processQuantity(quantity); in processQuantity() local 80 final UnitsRouter.RouteResult routed = fUnitsRouter.route(quantity.toBigDecimal(), micros); in processQuantity() 83 micros.outputUnit = routed.outputUnit.build(); in processQuantity() 85 UsagePrefsHandler.mixedMeasuresToMicros(routedMeasures, quantity, micros); in processQuantity() 86 return micros; in processQuantity()
|
D | LongNameMultiplexer.java | 32 public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros); in processQuantityWithMicros() argument 86 MicroProps micros = this.fParent.processQuantity(quantity); in processQuantity() local 90 if (fMeasureUnits.get(i).equals(micros.outputUnit)) { in processQuantity() 92 return handler.processQuantityWithMicros(quantity, micros); in processQuantity()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MixedUnitLongNameHandler.java | 103 MicroProps micros; in processQuantity() local 104 micros = parent.processQuantity(quantity); in processQuantity() 105 micros.modOuter = getMixedUnitModifier(quantity, micros); in processQuantity() 106 return micros; in processQuantity() 117 public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros) { in processQuantityWithMicros() argument 119 micros.modOuter = getMixedUnitModifier(quantity, micros); in processQuantityWithMicros() 120 return micros; in processQuantityWithMicros() 143 private Modifier getMixedUnitModifier(DecimalQuantity quantity, MicroProps micros) { in getMixedUnitModifier() argument 146 if (micros.mixedMeasures.size() == 0) { in getMixedUnitModifier() 171 for (int i = 0; i < micros.mixedMeasures.size(); i++) { in getMixedUnitModifier() [all …]
|
D | MutablePatternModifier.java | 233 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 234 if (micros.rounder != null) { in processQuantity() 235 micros.rounder.apply(quantity); in processQuantity() 237 if (micros.modMiddle != null) { in processQuantity() 238 return micros; in processQuantity() 240 applyToMicros(micros, quantity); in processQuantity() 241 return micros; in processQuantity() 244 public void applyToMicros(MicroProps micros, DecimalQuantity quantity) { in applyToMicros() argument 246 micros.modMiddle = pm.getModifierWithoutPlural(quantity.signum()); in applyToMicros() 248 … StandardPlural pluralForm = RoundingUtils.getPluralSafe(micros.rounder, rules, quantity); in applyToMicros() [all …]
|
D | UsagePrefsHandler.java | 73 MicroProps micros = this.fParent.processQuantity(quantity); in processQuantity() local 76 final UnitsRouter.RouteResult routed = fUnitsRouter.route(quantity.toBigDecimal(), micros); in processQuantity() 79 micros.outputUnit = routed.outputUnit.build(); in processQuantity() 81 UsagePrefsHandler.mixedMeasuresToMicros(routedMeasures, quantity, micros); in processQuantity() 82 return micros; in processQuantity()
|
D | LongNameMultiplexer.java | 29 public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros); in processQuantityWithMicros() argument 83 MicroProps micros = this.fParent.processQuantity(quantity); in processQuantity() local 87 if (fMeasureUnits.get(i).equals(micros.outputUnit)) { in processQuantity() 89 return handler.processQuantityWithMicros(quantity, micros); in processQuantity()
|
/external/tensorflow/tensorflow/lite/profiling/ |
D | time.cc | 38 void SleepForMicros(uint64_t micros) { in SleepForMicros() argument 39 std::this_thread::sleep_for(std::chrono::microseconds(micros)); in SleepForMicros() 50 void SleepForMicros(uint64_t micros) { 52 sleep_time.tv_sec = micros / 1e6; 53 micros -= sleep_time.tv_sec * 1e6; 54 sleep_time.tv_nsec = micros * 1e3;
|
/external/tensorflow/tensorflow/core/platform/default/ |
D | env.cc | 111 void SleepForMicroseconds(int64 micros) override { in SleepForMicroseconds() argument 112 while (micros > 0) { in SleepForMicroseconds() 117 if (micros >= 1e6) { in SleepForMicroseconds() 119 std::min<int64>(micros / 1e6, std::numeric_limits<time_t>::max()); in SleepForMicroseconds() 120 micros -= static_cast<int64>(sleep_time.tv_sec) * 1e6; in SleepForMicroseconds() 122 if (micros < 1e6) { in SleepForMicroseconds() 123 sleep_time.tv_nsec = 1000 * micros; in SleepForMicroseconds() 124 micros = 0; in SleepForMicroseconds() 178 void SchedClosureAfter(int64 micros, std::function<void()> closure) override { in SchedClosureAfter() argument 182 SchedClosure([this, micros, closure]() { in SchedClosureAfter() [all …]
|
/external/tensorflow/tensorflow/core/kernels/batching_util/ |
D | fake_clock_env.cc | 26 void FakeClockEnv::AdvanceByMicroseconds(int micros) { in AdvanceByMicroseconds() argument 29 current_time_ += micros; in AdvanceByMicroseconds() 75 void FakeClockEnv::SleepForMicroseconds(int64 micros) { in SleepForMicroseconds() argument 76 if (micros == 0) { in SleepForMicroseconds() 83 sleeping_threads_.push_back({current_time_ + micros, &wake_notification}); in SleepForMicroseconds()
|
/external/tensorflow/tensorflow/core/profiler/g3doc/ |
D | profile_time.md | 48 tfprof> code -show_name_regexes seq2seq_attention.* -max_depth 10 -select micros -order_by micros 75 …_add_seq2seq.* -show_name_regexes seq2seq_attention.* -max_depth 10 -select micros -order_by micros 84 tfprof> code -max_depth 5 -select micros -order_by micros -start_name_regexes .*_add_seq2seq.* -mi… 102 opts['select'] = ['micros'] 118 tfprof> op -select micros,occurrence -order_by micros 134 tfprof> op -select micros,device -order_by micros 172 tfprof> scope -max_depth 30 -select micros -min_micros 100000 -order_by micros
|
/external/icu/libicu/cts_headers/ |
D | number_microprops.h | 151 void processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() 155 if (this == µs) { in processQuantity() 158 micros.exhausted = true; in processQuantity() 163 micros = *this; in processQuantity()
|