Home
last modified time | relevance | path

Searched refs:FSHIFT (Results 1 – 13 of 13) sorted by relevance

/freebsd-13.1/sys/dev/syscons/snake/
H A Dsnake_saver.c61 #define LOAD_HIGH(ld) (((ld * 100 + FSCALE / 2) >> FSHIFT) / 100)
62 #define LOAD_LOW(ld) (((ld * 100 + FSCALE / 2) >> FSHIFT) % 100)
119 load = ((averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT); in snake_saver()
/freebsd-13.1/include/rpcsvc/
H A Drstat.x42 %#define FSHIFT 8 /* bits to right of fixed binary point */
43 %#define FSCALE (1<<FSHIFT)
/freebsd-13.1/sys/kern/
H A Dsched_4bsd.c505 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; in schedcpu()
512 #if (FSHIFT >= CCPU_SHIFT) in schedcpu()
515 (FSHIFT - CCPU_SHIFT) : in schedcpu()
517 << (FSHIFT - CCPU_SHIFT)) / realstathz; in schedcpu()
521 FSCALE / realstathz)) >> FSHIFT; in schedcpu()
1618 #if (FSHIFT >= CCPU_SHIFT) in sched_pctcpu_delta()
1621 (FSHIFT - CCPU_SHIFT) : in sched_pctcpu_delta()
1623 << (FSHIFT - CCPU_SHIFT)) / realstathz; in sched_pctcpu_delta()
1627 FSCALE / realstathz)) >> FSHIFT; in sched_pctcpu_delta()
H A Dtty_info.c305 load = (averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT; in tty_info()
365 pctcpu = (sched_pctcpu(td) * 10000 + FSCALE / 2) >> FSHIFT; in tty_info()
H A Dkern_synch.c621 nrun * FSCALE * (FSCALE - cexp[i])) >> FSHIFT; in loadav()
H A Dkern_racct.c377 pctcpu_next = (pctcpu * ccpu_exp[1]) >> FSHIFT; in racct_getpcpu()
H A Dsched_ule.c2769 pctcpu = (FSCALE * ((FSCALE * rtick)/hz)) >> FSHIFT; in sched_pctcpu()
/freebsd-13.1/sys/sys/
H A Dparam.h353 #define FSHIFT 11 /* bits to right of fixed binary point */ macro
354 #define FSCALE (1<<FSHIFT)
/freebsd-13.1/contrib/sendmail/src/
H A Dconf.c1472 #ifndef FSHIFT
1474 # define FSHIFT 5 macro
1478 # define FSHIFT 10 macro
1483 #ifndef FSHIFT
1484 # define FSHIFT 8 macro
1488 # define FSCALE (1 << FSHIFT)
1631 (int) (avenrun[0] + FSCALE/2) >> FSHIFT); in getla()
1632 return ((int) (avenrun[0] + FSCALE/2) >> FSHIFT); in getla()
1701 (int) (avenrun[0] + FSCALE/2) >> FSHIFT); in getla()
1941 (int) (avenrun[0] + FSCALE/2) >> FSHIFT); in getla()
[all …]
H A DREADME401 FSHIFT For LA_INT, LA_SHORT, and LA_READKSYM, this is the number
/freebsd-13.1/usr.bin/rup/
H A Drup.c46 #undef FSHIFT /* Use protocol's shift and scale values */
/freebsd-13.1/libexec/rpc.rstatd/
H A Drstat_proc.c67 #undef FSHIFT /* Use protocol's shift and scale values */
/freebsd-13.1/contrib/sendmail/include/sm/
H A Dconf.h224 # define FSHIFT 16 macro
1622 # define FSHIFT 16 macro