Home
last modified time | relevance | path

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

/third_party/node/deps/histogram/src/
Dhdr_histogram.c165 return pow2ceiling - h->unit_magnitude - (h->sub_bucket_half_count_magnitude + 1); in get_bucket_index()
168 static int32_t get_sub_bucket_index(int64_t value, int32_t bucket_index, int32_t unit_magnitude) in get_sub_bucket_index() argument
170 return (int32_t)(value >> (bucket_index + unit_magnitude)); in get_sub_bucket_index()
184 …ic int64_t value_from_index(int32_t bucket_index, int32_t sub_bucket_index, int32_t unit_magnitude) 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()
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()
216 return INT64_C(1) << (h->unit_magnitude + adjusted_bucket); in hdr_size_of_equivalent_value_range()
222 int32_t sub_bucket_index = get_sub_bucket_index(value, bucket_index, h->unit_magnitude); in lowest_equivalent_value()
[all …]
Dhdr_histogram.h21 int32_t unit_magnitude; member
470 int64_t unit_magnitude; member