Searched refs:avg (Results 1 - 25 of 32) sorted by relevance

12

/openbsd-current/usr.sbin/unbound/util/
H A Dtimeval_func.c76 timeval_divide(struct timeval* avg, const struct timeval* sum, long long d) argument
81 avg->tv_sec = 0;
82 avg->tv_usec = 0;
85 avg->tv_sec = sum->tv_sec / d;
86 avg->tv_usec = sum->tv_usec / d;
88 leftover = sum->tv_sec - avg->tv_sec*d;
91 avg->tv_usec += (((long long)leftover)*((long long)1000000))/d;
92 if(avg->tv_sec < 0)
93 avg->tv_sec = 0;
94 if(avg
[all...]
H A Dtimeval_func.h52 void timeval_divide(struct timeval* avg, const struct timeval* sum, long long d);
/openbsd-current/sbin/unwind/libunbound/util/
H A Dtimeval_func.c76 timeval_divide(struct timeval* avg, const struct timeval* sum, long long d) argument
81 avg->tv_sec = 0;
82 avg->tv_usec = 0;
85 avg->tv_sec = sum->tv_sec / d;
86 avg->tv_usec = sum->tv_usec / d;
88 leftover = sum->tv_sec - avg->tv_sec*d;
91 avg->tv_usec += (((long long)leftover)*((long long)1000000))/d;
92 if(avg->tv_sec < 0)
93 avg->tv_sec = 0;
94 if(avg
[all...]
H A Dtimeval_func.h52 void timeval_divide(struct timeval* avg, const struct timeval* sum, long long d);
/openbsd-current/gnu/llvm/lldb/packages/Python/lldbsuite/test/
H A Dlldbbench.py28 avg_time = sw.avg()
88 def avg(self): member in class:Stopwatch
99 return "Avg: %f (Laps: %d, Total Elapsed Time: %f, min=%f, max=%f)" % (self.avg(
/openbsd-current/sys/dev/usb/
H A Duoak_subr.c289 s->avg.type = type;
292 s->avg.flags |= SENSOR_FINVALID;
296 (void)snprintf(s->avg.desc, sizeof(s->avg.desc),
297 "avg(#%s)", sc->sc_udi.udi_serial);
303 sensor_attach(sc->sc_sensordev, &s->avg);
314 sensor_attach(sc->sc_sensordev, &s->avg);
350 s->avg.value = s->vavg * mag + offset;
355 s->avg.flags &= ~SENSOR_FINVALID;
H A Duoak.h141 struct ksensor avg; member in struct:uoak_sensor
/openbsd-current/sbin/pfctl/
H A Dpfctl_queue.c215 double avg = 0, dev = 0; local
218 avg = (double)fqstats->delaysum /
221 (double)fqstats->flows - avg * avg));
224 printf(" [ qlength: %3d/%3d avg delay: %.3fms std-dev: %.3fms"
226 avg / 1000, dev / 1000, fqstats->flows);
/openbsd-current/sys/dev/wscons/
H A Dwsmouseinput.h112 int avg; member in struct:axis_filter
122 long avg; /* average update interval in nanoseconds */ member in struct:interval
H A Dwstpad.c1347 input->intv.avg = input->intv.sum << 9;
1350 input->intv.avg = input->intv.sum << 5;
1429 h->avg = v->avg = 0;
1432 dx = dx * (8 - strength) + h->avg * strength + h->avg_rmdr;
1433 dy = dy * (8 - strength) + v->avg * strength + v->avg_rmdr;
1436 dx = h->avg = dx / 8;
1437 dy = v->avg = dy / 8;
1553 if (input->intv.avg == 0) {
1556 n = 8 * 13000000 / input->intv.avg;
[all...]
/openbsd-current/regress/lib/libcrypto/bn/
H A Dbn_mod_exp.c246 int avg = 2 * BN_BITS, deviate = BN_BITS / 2; local
249 if (!generate_bn(a, avg, deviate, 0))
252 if (!generate_bn(p, avg, deviate, 0))
255 if (!generate_bn(b, avg, deviate, 0))
258 if (!generate_bn(q, avg, deviate, 0))
261 if (!generate_bn(m, avg, deviate, 1))
/openbsd-current/gnu/llvm/llvm/tools/llvm-exegesis/lib/
H A DBenchmarkResult.h136 double avg() const { function in class:llvm::exegesis::PerInstructionStats
H A DClustering.cpp371 std::get<0>(I).PerInstructionValue = std::get<1>(I).avg();
H A DAnalysis.cpp324 writeMeasurementValue<kEscapeHtml>(OS, Stats.avg());
/openbsd-current/sys/dev/pci/drm/i915/gt/
H A Dintel_context.c346 CE_TRACE(ce, "retire runtime: { total:%lluns, avg:%lluns }\n",
397 ewma_runtime_init(&ce->stats.runtime.avg);
618 u64 avg = ewma_runtime_read(&ce->stats.runtime.avg); local
621 avg *= ce->engine->gt->clock_period_ns;
623 return avg;
H A Dintel_context_types.h152 struct ewma_runtime avg; member in struct:intel_context::intel_context_stats::__anon857
/openbsd-current/usr.sbin/relayctl/
H A Drelayctl.c568 crs.avg += stats[i].avg;
582 "", crs.avg, crs.interval,
/openbsd-current/sys/dev/pci/drm/i915/gem/
H A Di915_gem_shrinker.c303 unsigned long avg = 2 * count / num_objects; local
306 max((i915->mm.shrinker.batch + avg) >> 1,
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Dprove.t1051 '--perl-option', 'avg=0.278',
1063 Perl => { foo => 'bar baz', avg => 0.278 },
1075 Perl => { foo => 'bar baz', avg => 0.278 },
/openbsd-current/gnu/llvm/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPT.cpp390 std::optional<double> avg;
392 avg = double(mem_used) / insn_len;
393 json_str.attribute("avgPerItemInBytes", avg);
/openbsd-current/usr.sbin/unbound/smallapp/
H A Dunbound-control.c204 struct timeval sumwait, avg; local
229 printf("%s.requestlist.avg"SQ"%g\n", nm,
243 timeval_divide(&avg, &sumwait, s->mesh_replies_sent);
245 PR_TIMEVAL("recursion.time.avg", avg);
/openbsd-current/sbin/ping/
H A Dping.c1040 double avg = tsum / num; local
1041 double dev = sqrt(fmax(0, tsumsq / num - avg * avg));
1042 printf("round-trip min/avg/max/std-dev = %.3f/%.3f/%.3f/%.3f ms\n",
1043 tmin, avg, tmax, dev);
/openbsd-current/usr.sbin/relayd/
H A Dpfe.c804 cur->avg = (cur->last + cur->avg) / 2;
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Harness/bin/
H A Dprove363 --source Perl --perl-option 'foo=bar baz' --perl-option avg=0.278 \
/openbsd-current/usr.sbin/unbound/services/
H A Dmesh.c1994 struct timeval avg; local
1995 timeval_divide(&avg, &mesh->replies_sum_wait,
1999 (long long)avg.tv_sec, (int)avg.tv_usec);

Completed in 332 milliseconds

12