/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberFormatterImpl.java | 57 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic() local 58 int length = writeNumber(micros, inValue, outString, 0); in formatStatic() 59 length += writeAffixes(micros, outString, 0, length); in formatStatic() 90 MicroProps micros = preProcess(inValue); in format() local 91 int length = writeNumber(micros, inValue, outString, 0); in format() 92 length += writeAffixes(micros, outString, 0, length); in format() 100 MicroProps micros = microPropsGenerator.processQuantity(inValue); in preProcess() local 101 micros.rounder.apply(inValue); in preProcess() 102 if (micros.integerWidth.maxInt == -1) { in preProcess() 103 inValue.setIntegerLength(micros.integerWidth.minInt, Integer.MAX_VALUE); in preProcess() [all …]
|
D | ScientificNotation.java | 159 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 160 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() 181 micros.modInner = precomputedMods[exponent + 12]; in processQuantity() 184 micros.modInner = new ScientificModifier(exponent, this); in processQuantity() 188 micros.modInner = this; in processQuantity() 192 micros.rounder = Precision.constructPassThrough(); in processQuantity() [all …]
|
D | CompactNotation.java | 122 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 123 assert micros.rounder != null; in processQuantity() 129 micros.rounder.apply(quantity); in processQuantity() 132 int multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 146 mod.applyToMicros(micros, quantity); in processQuantity() 150 assert micros.modMiddle instanceof MutablePatternModifier; in processQuantity() 152 ((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo); in processQuantity() 156 micros.rounder = Precision.constructPassThrough(); in processQuantity() 158 return micros; in processQuantity()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberFormatterImpl.java | 56 MicroProps micros = preProcessUnsafe(macros, inValue); in formatStatic() local 57 int length = writeNumber(micros, inValue, outString, 0); in formatStatic() 58 length += writeAffixes(micros, outString, 0, length); in formatStatic() 89 MicroProps micros = preProcess(inValue); in format() local 90 int length = writeNumber(micros, inValue, outString, 0); in format() 91 length += writeAffixes(micros, outString, 0, length); in format() 99 MicroProps micros = microPropsGenerator.processQuantity(inValue); in preProcess() local 100 micros.rounder.apply(inValue); in preProcess() 101 if (micros.integerWidth.maxInt == -1) { in preProcess() 102 inValue.setIntegerLength(micros.integerWidth.minInt, Integer.MAX_VALUE); in preProcess() [all …]
|
D | ScientificNotation.java | 161 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 162 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() 183 micros.modInner = precomputedMods[exponent + 12]; in processQuantity() 186 micros.modInner = new ScientificModifier(exponent, this); in processQuantity() 190 micros.modInner = this; in processQuantity() 194 micros.rounder = Precision.constructPassThrough(); in processQuantity() [all …]
|
D | CompactNotation.java | 121 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 122 assert micros.rounder != null; in processQuantity() 128 micros.rounder.apply(quantity); in processQuantity() 131 int multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data); in processQuantity() 145 mod.applyToMicros(micros, quantity); in processQuantity() 149 assert micros.modMiddle instanceof MutablePatternModifier; in processQuantity() 151 ((MutablePatternModifier) micros.modMiddle).setPatternInfo(patternInfo); in processQuantity() 155 micros.rounder = Precision.constructPassThrough(); in processQuantity() 157 return micros; in processQuantity()
|
/external/icu/icu4c/source/i18n/ |
D | number_formatimpl.cpp | 77 MicroProps& micros = impl.preProcessUnsafe(inValue, status); in formatStatic() local 79 int32_t length = writeNumber(micros, inValue, outString, 0, status); in formatStatic() 80 length += writeAffixes(micros, outString, 0, length, status); in formatStatic() 98 MicroProps micros; in format() local 99 preProcess(inValue, micros, status); in format() 101 int32_t length = writeNumber(micros, inValue, outString, 0, status); in format() 102 length += writeAffixes(micros, outString, 0, length, status); in format() 427 int32_t NumberFormatterImpl::writeAffixes(const MicroProps& micros, NumberStringBuilder& string, in writeAffixes() argument 430 int32_t length = micros.modInner->apply(string, start, end, status); in writeAffixes() 431 if (micros.padding.isValid()) { in writeAffixes() [all …]
|
D | number_scientific.cpp | 122 void ScientificHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 124 fParent->processQuantity(quantity, micros, status); in processQuantity() 130 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() 143 ScientificModifier &mod = micros.helpers.scientificModifier; in processQuantity() 145 micros.modInner = &mod; in processQuantity() 148 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
|
D | number_patternmodifier.cpp | 126 void ImmutablePatternModifier::processQuantity(DecimalQuantity& quantity, MicroProps& micros, in processQuantity() argument 128 parent->processQuantity(quantity, micros, status); in processQuantity() 129 applyToMicros(micros, quantity); in processQuantity() 132 void ImmutablePatternModifier::applyToMicros(MicroProps& micros, DecimalQuantity& quantity) const { in applyToMicros() argument 134 micros.modMiddle = pm->getModifierWithoutPlural(quantity.signum()); in applyToMicros() 140 micros.modMiddle = pm->getModifier(quantity.signum(), plural); in applyToMicros() 159 void MutablePatternModifier::processQuantity(DecimalQuantity& fq, MicroProps& micros, in processQuantity() argument 161 fParent->processQuantity(fq, micros, status); in processQuantity() 168 micros.rounder.apply(copy, status); in processQuantity() 173 micros.modMiddle = this; in processQuantity()
|
D | number_microprops.h | 58 … void processQuantity(DecimalQuantity&, MicroProps& micros, UErrorCode& status) const U_OVERRIDE { in processQuantity() 60 if (this == µs) { in processQuantity() 63 micros.exhausted = true; in processQuantity() 67 micros = *this; in processQuantity()
|
D | number_formatimpl.h | 71 static int32_t writeNumber(const MicroProps& micros, DecimalQuantity& quantity, 77 … static int32_t writeAffixes(const MicroProps& micros, NumberStringBuilder& string, int32_t start, 135 …writeIntegerDigits(const MicroProps µs, DecimalQuantity &quantity, NumberStringBuilder &strin… 139 …writeFractionDigits(const MicroProps µs, DecimalQuantity &quantity, NumberStringBuilder &stri…
|
D | number_compact.cpp | 270 void CompactHandler::processQuantity(DecimalQuantity &quantity, MicroProps µs, in processQuantity() argument 272 parent->processQuantity(quantity, micros, status); in processQuantity() 279 micros.rounder.apply(quantity, status); in processQuantity() 282 int32_t multiplier = micros.rounder.chooseMultiplierAndApply(quantity, data, status); in processQuantity() 300 info.mod->applyToMicros(micros, quantity); in processQuantity() 312 static_cast<MutablePatternModifier*>(const_cast<Modifier*>(micros.modMiddle)) in processQuantity() 317 micros.rounder = RoundingImpl::passThrough(); in processQuantity()
|
/external/tensorflow/tensorflow/core/platform/posix/ |
D | env.cc | 63 void SleepForMicroseconds(int64 micros) override { in SleepForMicroseconds() argument 64 while (micros > 0) { in SleepForMicroseconds() 69 if (micros >= 1e6) { in SleepForMicroseconds() 71 std::min<int64>(micros / 1e6, std::numeric_limits<time_t>::max()); in SleepForMicroseconds() 72 micros -= static_cast<int64>(sleep_time.tv_sec) * 1e6; in SleepForMicroseconds() 74 if (micros < 1e6) { in SleepForMicroseconds() 75 sleep_time.tv_nsec = 1000 * micros; in SleepForMicroseconds() 76 micros = 0; in SleepForMicroseconds() 126 void SchedClosureAfter(int64 micros, std::function<void()> closure) override { in SchedClosureAfter() argument 130 SchedClosure([this, micros, closure]() { in SchedClosureAfter() [all …]
|
/external/tensorflow/tensorflow/lite/profiling/ |
D | time.cc | 37 void SleepForMicros(uint64_t micros) { in SleepForMicros() argument 38 std::this_thread::sleep_for(std::chrono::microseconds(micros)); in SleepForMicros() 49 void SleepForMicros(uint64_t micros) { 51 sleep_time.tv_sec = micros / 1e6; 52 micros -= sleep_time.tv_sec * 1e6; 53 sleep_time.tv_nsec = micros * 1e3;
|
/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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MutablePatternModifier.java | 232 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 233 applyToMicros(micros, quantity); in processQuantity() 234 return micros; in processQuantity() 237 public void applyToMicros(MicroProps micros, DecimalQuantity quantity) { in applyToMicros() argument 239 micros.modMiddle = pm.getModifierWithoutPlural(quantity.signum()); in applyToMicros() 245 micros.modMiddle = pm.getModifier(quantity.signum(), plural); in applyToMicros() 269 MicroProps micros = parent.processQuantity(fq); in processQuantity() local 273 micros.rounder.apply(copy); in processQuantity() 278 micros.modMiddle = this; in processQuantity() 279 return micros; in processQuantity()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MutablePatternModifier.java | 237 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 238 applyToMicros(micros, quantity); in processQuantity() 239 return micros; in processQuantity() 242 public void applyToMicros(MicroProps micros, DecimalQuantity quantity) { in applyToMicros() argument 244 micros.modMiddle = pm.getModifierWithoutPlural(quantity.signum()); in applyToMicros() 250 micros.modMiddle = pm.getModifier(quantity.signum(), plural); in applyToMicros() 274 MicroProps micros = parent.processQuantity(fq); in processQuantity() local 278 micros.rounder.apply(copy); in processQuantity() 283 micros.modMiddle = this; in processQuantity() 284 return micros; in processQuantity()
|
D | MultiplierFormatHandler.java | 23 MicroProps micros = parent.processQuantity(quantity); in processQuantity() local 25 return micros; in processQuantity()
|
/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/guava/guava/src/com/google/common/util/concurrent/ |
D | SmoothRateLimiter.java | 256 long micros = 0; in storedPermitsToWaitTime() local 260 micros = (long) (permitsAboveHalfToTake * (permitsToTime(availablePermitsAboveHalf) in storedPermitsToWaitTime() 265 micros += (stableIntervalMicros * permitsToTake); in storedPermitsToWaitTime() 266 return micros; in storedPermitsToWaitTime()
|
D | RateLimiter.java | 410 abstract void sleepMicrosUninterruptibly(long micros); in sleepMicrosUninterruptibly() argument 422 void sleepMicrosUninterruptibly(long micros) { in createFromSystemTimer() argument 423 if (micros > 0) { in createFromSystemTimer() 424 Uninterruptibles.sleepUninterruptibly(micros, MICROSECONDS); in createFromSystemTimer()
|
/external/tensorflow/tensorflow/core/platform/ |
D | env.h | 263 virtual void SleepForMicroseconds(int64 micros) = 0; 292 virtual void SchedClosureAfter(int64 micros, 365 void SleepForMicroseconds(int64 micros) override { in SleepForMicroseconds() argument 366 target_->SleepForMicroseconds(micros); in SleepForMicroseconds() 379 void SchedClosureAfter(int64 micros, std::function<void()> closure) override { in SchedClosureAfter() argument 380 target_->SchedClosureAfter(micros, closure); in SchedClosureAfter()
|
/external/tensorflow/tensorflow/core/platform/windows/ |
D | env.cc | 80 void SleepForMicroseconds(int64 micros) override { Sleep(micros / 1000); } in SleepForMicroseconds() argument 116 void SchedClosureAfter(int64 micros, std::function<void()> closure) override { in SchedClosureAfter() argument 125 ulDueTime.QuadPart = (ULONGLONG) - (10 * micros); in SchedClosureAfter()
|
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
D | RemoteClockInfo.java | 53 public long micros() { in micros() method in RemoteClockInfo 62 return "Remote clock [us]: current time = " + micros() + " baseTime = " + baseTime + in toString()
|
/external/tensorflow/tensorflow/core/framework/ |
D | rendezvous_test.cc | 177 int micros = 100 + rnd.Uniform(1000); in TEST_F() local 178 SchedClosure([this, i, micros]() { in TEST_F() 179 Env::Default()->SleepForMicroseconds(micros); in TEST_F() 201 micros = 100 + rnd.Uniform(1000); in TEST_F() 202 SchedClosure([this, i, micros, recv_done]() { in TEST_F() 203 Env::Default()->SleepForMicroseconds(micros); in TEST_F()
|