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; \
53 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; \
4390 u_int64_t _avg; \4391 if (__probable((_avg = (old)) > 0)) \4392 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \4394 _avg = (new); \4395 (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()
36 u_int32_t _avg; \37 if ((_avg = (old)) > 0) \38 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \40 _avg = (new); \41 (old) = _avg; \
1407 …volatile uint32_t _avg; …1412 …_avg = _new_val; …1416 _avg = _old_val - (_old_val >> _decay) + (_new_val >> _decay); \1418 …if (_old_val == _avg) break; …1419 } while (!OSCompareAndSwap(_old_val, _avg, _val_addr)); \
72 u_int64_t _avg; \73 if (__probable((_avg = (old)) > 0)) \74 _avg = (((_avg << (decay)) - _avg) + (new)) >> (decay); \76 _avg = (new); \77 (old) = _avg; \
931 float _avg = 0; in compute_stats() local940 _avg = ((float)_sum) / ((float)count); in compute_stats()944 _dev += powf((((float)values[i]) - _avg), 2); in compute_stats()950 *averagep = _avg; in compute_stats()