Searched refs:FSHIFT (Results 1 - 12 of 12) sorted by relevance

/freebsd-11.0-release/include/rpcsvc/
H A Drstat.x42 %#define FSHIFT 8 /* bits to right of fixed binary point */
43 %#define FSCALE (1<<FSHIFT)
/freebsd-11.0-release/sys/dev/syscons/snake/
H A Dsnake_saver.c59 #define LOAD_HIGH(ld) (((ld * 100 + FSCALE / 2) >> FSHIFT) / 100)
60 #define LOAD_LOW(ld) (((ld * 100 + FSCALE / 2) >> FSHIFT) % 100)
117 load = ((averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT);
/freebsd-11.0-release/sys/sys/
H A Dparam.h335 * by the formula (1 / (2 ^ (FSHIFT - 11))). The maximum load average that
337 * the formula (2 ^ (2 * (16 - FSHIFT))) for (FSHIFT < 15).
340 * FSHIFT must be at least 11; this gives us a maximum load avg of ~1024.
342 #define FSHIFT 11 /* bits to right of fixed binary point */ macro
343 #define FSCALE (1<<FSHIFT)
/freebsd-11.0-release/sys/kern/
H A Dtty_info.c232 load = (averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT;
292 pctcpu = (sched_pctcpu(td) * 10000 + FSCALE / 2) >> FSHIFT;
H A Dsched_4bsd.c463 * and possibly adjust FSHIFT in "param.h" so that (FSHIFT >= CCPU_SHIFT).
469 * can set CCPU_SHIFT to (FSHIFT + 1) which will use a slower/less-accurate
522 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT;
529 #if (FSHIFT >= CCPU_SHIFT)
532 (FSHIFT - CCPU_SHIFT) :
534 << (FSHIFT - CCPU_SHIFT)) / realstathz;
538 FSCALE / realstathz)) >> FSHIFT;
1614 #if (FSHIFT >= CCPU_SHIFT)
1617 (FSHIFT
[all...]
H A Dkern_synch.c526 nrun * FSCALE * (FSCALE - cexp[i])) >> FSHIFT;
H A Dkern_racct.c375 pctcpu_next = (pctcpu * ccpu_exp[1]) >> FSHIFT;
H A Dsched_ule.c2493 pctcpu = (FSCALE * ((FSCALE * rtick)/hz)) >> FSHIFT;
/freebsd-11.0-release/usr.bin/rup/
H A Drup.c44 #undef FSHIFT /* Use protocol's shift and scale values */ macro
/freebsd-11.0-release/contrib/sendmail/src/
H A Dconf.c1407 #ifndef FSHIFT
1409 # define FSHIFT 5 macro
1413 # define FSHIFT 10 macro
1416 #endif /* ! FSHIFT */
1418 #ifndef FSHIFT
1419 # define FSHIFT 8 macro
1420 #endif /* ! FSHIFT */
1423 # define FSCALE (1 << FSHIFT)
1566 (int) (avenrun[0] + FSCALE/2) >> FSHIFT);
1567 return ((int) (avenrun[0] + FSCALE/2) >> FSHIFT);
[all...]
/freebsd-11.0-release/libexec/rpc.rstatd/
H A Drstat_proc.c68 #undef FSHIFT /* Use protocol's shift and scale values */ macro
/freebsd-11.0-release/contrib/sendmail/include/sm/
H A Dconf.h224 # define FSHIFT 16 macro
1604 # define FSHIFT 16 macro

Completed in 119 milliseconds