Lines Matching refs:cnt
152 #define INC_PERF_COUNTER(cnt) (++(cnt))
153 #define ADD_PERF_COUNTER(cnt, add) ((cnt) += (add))
154 #define AVG_PERF_COUNTER(cnt, sample) \
155 ((cnt) = ((cnt) * (AVG_SIZE - 1) + (sample) * AVG_FACTOR) / AVG_SIZE)
156 #define GET_PERF_COUNTER(cnt) (cnt)
157 #define GET_AVG_PERF_COUNTER(cnt) ((cnt) / AVG_FACTOR)
162 #define INC_PERF_COUNTER(cnt) do {} while (0)
163 #define ADD_PERF_COUNTER(cnt, add) do {} while (0)
164 #define AVG_PERF_COUNTER(cnt, sample) do {} while (0)
165 #define GET_PERF_COUNTER(cnt) (0)
166 #define GET_AVG_PERF_COUNTER(cnt) (0)