Home
last modified time | relevance | path

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

/system/bt/common/
Dmetrics.cc70 static float combine_averages(float avg_a, int64_t ct_a, float avg_b, in combine_averages() argument
72 if (ct_a > 0 && ct_b > 0) { in combine_averages()
73 return (avg_a * ct_a + avg_b * ct_b) / (ct_a + ct_b); in combine_averages()
81 static int32_t combine_averages(int32_t avg_a, int64_t ct_a, int32_t avg_b, in combine_averages() argument
83 if (ct_a > 0 && ct_b > 0) { in combine_averages()
84 return (avg_a * ct_a + avg_b * ct_b) / (ct_a + ct_b); in combine_averages()