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

12

/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.avg_neg.d32 * Positive avg() test using negative values
36 * NOTES: This is a simple verifiable positive test of the avg() function.
43 @ = avg(0);
44 @ = avg(-900);
H A Derr.D_PROTO_LEN.avgtoomany.d32 * avg() should not more than one argument
42 @a[1] = avg(1, 2);
H A Derr.D_PROTO_LEN.avgnoarg.d32 * avg() should not accept a call with no arguments
42 @a[1] = avg();
H A Derr.D_AGG_SCALAR.avgtoofew.d31 * avg() should not accept a non-scalar value
41 @a[pid] = avg(probefunc);
H A Dtst.avg.d32 * Positive avg() test
36 * NOTES: This is a simple verifiable positive test of the avg() function.
49 @a = avg(i);
H A Dtst.clearavg.d32 * Positive avg() test
37 * Verifies that printing a clear()'d aggregation with an avg()
47 @a = avg(timestamp);
H A Dtst.clearavg2.d32 * Positive avg() test
37 * Verifies that printing a clear()'d aggregation with an avg()
49 @time = avg(0);
H A Dtst.multiaggs2.d46 @a = avg(i);
H A Dtst.multiaggs1.d50 @c[pid] = avg(new_time);
H A Dtst.multiaggs3.d50 @b = avg(i);
/freebsd-current/contrib/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);
/freebsd-current/tools/tools/qrndtest/
H A Dr.c54 uint64_t avg; local
73 avg = vals[0] + vals[1] + vals[2] + vals[3];
74 avg /= 4;
75 printf("%d: %ld %ld %ld %ld\n", i, vals[0] - avg, vals[1] - avg, vals[2] - avg, vals[3] - avg);
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_AGG_SPEC.SpeculateWithAvg.d49 @avrg["speculate"] = avg(i);
/freebsd-current/sys/net/altq/
H A Daltq_rio.c231 prec->avg = 0;
249 * and th_max to be compared with avg.
281 sp->q_avg = rp->rio_precstate[i].avg >> rp->rio_wshift;
319 int avg, droptype; local
329 * update avg of the precedence states whose drop precedence
335 avg = prec->avg;
342 avg = 0;
347 /* calculate (avg = (1 - Wq)^n * avg) */
[all...]
H A Daltq_rio.h62 int avg; /* (scaled) queue length average */ member in struct:rio::dropprec_state
66 int old; /* avg is above th_min */
H A Daltq_red.c246 * to be compared with avg.
284 int avg, droptype; local
287 avg = rp->red_avg;
302 * being idle for more than 1 minute, set avg to zero.
305 avg = 0;
310 /* the following line does (avg = (1 - Wq)^n * avg) */
312 avg = (avg >> FP_SHIFT) *
317 /* run estimator. (note: avg i
[all...]
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printa/
H A Dtst.basics.d39 @a = avg(1);
/freebsd-current/share/dtrace/
H A Ddisklatency49 @avg[args[1]->device_name, args[1]->unit_number] = avg(this->delta);
58 printa("avg%s (%d), us:\n%@d\n", @avg);
63 clear(@avg);
H A Ddisklatencycmd58 @avg[args[1]->device_name, args[1]->unit_number] = avg(this->delta);
68 printa("avg%s (%d), us: %@d\n", @avg);
/freebsd-current/tools/tools/crypto/
H A Dcryptostats.c47 uint64_t avg, min, max; local
51 avg = (1000000000LL*ts->acc.tv_sec + ts->acc.tv_nsec) / ts->count;
54 printf("%16.16s: avg %6llu ns : min %6llu ns : max %7llu ns [%u samps]\n",
55 tag, avg, min, max, ts->count);
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/oformat/
H A Dtst.agg.avg.ksh25 @[probefunc] = avg(tid);
/freebsd-current/sbin/ping/
H A Dmain.c237 double avg = tsum / num; local
238 double stddev = sqrt(fmax(0, tsumsq / num - avg * avg));
240 "round-trip min/avg/max/stddev = %.3f/%.3f/%.3f/%.3f ms\n",
241 tmin, avg, tmax, stddev);
/freebsd-current/cddl/usr.sbin/dtrace/tests/common/oformat/
H A DMakefile8 tst.agg.avg.ksh \
/freebsd-current/stand/ficl/
H A Ddict.c486 double avg = 0.0; local
509 avg += (double)(n * (n+1)) / 2.0;
517 /* Calc actual avg search depth for this hash */
518 avg = avg / nWords;
530 avg,
532 100.0 * best / avg);

Completed in 324 milliseconds

12