Home
last modified time | relevance | path

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

/third_party/node/deps/histogram/src/
Dhdr_histogram.c173 …int32_t counts_index(const struct hdr_histogram* h, int32_t bucket_index, int32_t sub_bucket_index) in counts_index() argument
179 int32_t offset_in_bucket = sub_bucket_index - h->sub_bucket_half_count; in counts_index()
184 static int64_t value_from_index(int32_t bucket_index, int32_t sub_bucket_index, int32_t unit_magnit… in value_from_index() argument
186 return ((int64_t) sub_bucket_index) << (bucket_index + unit_magnitude); in value_from_index()
192 int32_t sub_bucket_index = get_sub_bucket_index(value, bucket_index, h->unit_magnitude); in counts_index_for() local
194 return counts_index(h, bucket_index, sub_bucket_index); in counts_index_for()
200 int32_t sub_bucket_index = (index & (h->sub_bucket_half_count - 1)) + h->sub_bucket_half_count; in hdr_value_at_index() local
204 sub_bucket_index -= h->sub_bucket_half_count; in hdr_value_at_index()
208 return value_from_index(bucket_index, sub_bucket_index, h->unit_magnitude); in hdr_value_at_index()
214 int32_t sub_bucket_index = get_sub_bucket_index(value, bucket_index, h->unit_magnitude); in hdr_size_of_equivalent_value_range() local
[all …]