Searched refs:decay (Results 1 - 2 of 2) sorted by relevance

/xnu-2782.1.97/bsd/net/classq/
H A Dclassq_sfb.c205 #define DEQUEUE_DECAY 7 /* ilog2 of EWMA decay rate, (128) */
1308 int decay = DEQUEUE_DECAY; local
1316 decay += 5;
1317 avg = (((avg << decay) - avg) + new) >> decay;
/xnu-2782.1.97/bsd/net/
H A Ddlil.c525 #define IF_RXPOLL_DECAY 2 /* ilog2 of EWMA decay rate (4) */
529 "ilog2 of EWMA decay rate of avg inbound packets");
718 #define DLIL_EWMA(old, new, decay) do { \
721 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \

Completed in 32 milliseconds