Searched refs:_avg (Results 1 – 8 of 8) sorted by relevance
39 uint32_t _avg; \40 if ((_avg = (old)) > 0) \41 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \43 _avg = (new); \44 (old) = _avg; \
54 uint32_t _avg; \55 if ((_avg = (old)) > 0) { \56 uint32_t _d = ((new) > _avg) ? gdecay : sdecay; \57 _avg = (((_avg << (_d)) - _avg) + (new)) >> (_d); \59 _avg = (new); \61 (old) = _avg; \
4399 u_int64_t _avg; \4400 if (__probable((_avg = (old)) > 0)) \4401 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \4403 _avg = (new); \4404 (old) = _avg; \
167 double _avg = 0; in compute_stats() local176 _avg = _sum / (double)count; in compute_stats()180 _dev += pow((values[i] - _avg), 2); in compute_stats()186 *average_magnitudep = _avg; in compute_stats()
37 u_int32_t _avg; \38 if ((_avg = (old)) > 0) \39 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \41 _avg = (new); \42 (old) = _avg; \
1707 …volatile uint32_t _avg; …1712 …_avg = _new_val; …1716 _avg = _old_val - (_old_val >> _decay) + (_new_val >> _decay); \1718 …if (_old_val == _avg) break; …1719 } while (!OSCompareAndSwap(_old_val, _avg, _val_addr)); \
73 u_int64_t _avg; \74 if (__probable((_avg = (old)) > 0)) \75 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \77 _avg = (new); \78 (old) = _avg; \
902 float _avg = 0; in compute_stats() local911 _avg = ((float)_sum) / ((float)count); in compute_stats()915 _dev += powf((((float)values[i]) - _avg), 2); in compute_stats()921 *averagep = _avg; in compute_stats()