Home
last modified time | relevance | path

Searched refs:_avg (Results 1 – 8 of 8) sorted by relevance

/xnu-10063.141.1/bsd/skywalk/nexus/netif/
H A Dnx_netif_poll.c38 uint32_t _avg; \
39 if ((_avg = (old)) > 0) \
40 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \
42 _avg = (new); \
43 (old) = _avg; \
H A Dnx_netif_mit.c53 uint32_t _avg; \
54 if ((_avg = (old)) > 0) { \
55 uint32_t _d = ((new) > _avg) ? gdecay : sdecay; \
56 _avg = (((_avg << (_d)) - _avg) + (new)) >> (_d); \
58 _avg = (new); \
60 (old) = _avg; \
H A Dnx_netif.c4360 u_int64_t _avg; \
4361 if (__probable((_avg = (old)) > 0)) \
4362 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \
4364 _avg = (new); \
4365 (old) = _avg; \
/xnu-10063.141.1/tools/tests/jitter/
H A Dtimer_jitter.c167 double _avg = 0; in compute_stats() local
176 _avg = _sum / (double)count; in compute_stats()
180 _dev += pow((values[i] - _avg), 2); in compute_stats()
186 *average_magnitudep = _avg; in compute_stats()
/xnu-10063.141.1/bsd/skywalk/channel/
H A Dchannel_ring.c72 u_int64_t _avg; \
73 if (__probable((_avg = (old)) > 0)) \
74 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \
76 _avg = (new); \
77 (old) = _avg; \
/xnu-10063.141.1/tools/tests/zero-to-n/
H A Dzero-to-n.c814 float _avg = 0; in compute_stats() local
823 _avg = ((float)_sum) / ((float)count); in compute_stats()
827 _dev += powf((((float)values[i]) - _avg), 2); in compute_stats()
833 *averagep = _avg; in compute_stats()
/xnu-10063.141.1/bsd/net/
H A Dntstat.c1111 …volatile uint32_t _avg; …
1116_avg = _new_val; …
1120 _avg = _old_val - (_old_val >> _decay) + (_new_val >> _decay); \
1122 …if (_old_val == _avg) break; …
1123 } while (!OSCompareAndSwap(_old_val, _avg, _val_addr)); \
H A Ddlil.c1826 u_int32_t _avg; \
1827 if ((_avg = (old)) > 0) \
1828 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \
1830 _avg = (new); \
1831 (old) = _avg; \