Home
last modified time | relevance | path

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

/third_party/node/deps/histogram/src/
H A Dhdr_histogram.c171 return pow2ceiling - h->unit_magnitude - (h->sub_bucket_half_count_magnitude + 1); in get_bucket_index()
174 static int32_t get_sub_bucket_index(int64_t value, int32_t bucket_index, int32_t unit_magnitude) in get_sub_bucket_index() argument
176 return (int32_t)(value >> (bucket_index + unit_magnitude)); in get_sub_bucket_index()
190 static int64_t value_from_index(int32_t bucket_index, int32_t sub_bucket_index, int32_t unit_magnitude) in value_from_index() argument
192 return ((int64_t) sub_bucket_index) << (bucket_index + unit_magnitude); in value_from_index()
198 int32_t sub_bucket_index = get_sub_bucket_index(value, bucket_index, h->unit_magnitude); in counts_index_for()
214 return value_from_index(bucket_index, sub_bucket_index, h->unit_magnitude); in hdr_value_at_index()
220 int32_t sub_bucket_index = get_sub_bucket_index(value, bucket_index, h->unit_magnitude); in hdr_size_of_equivalent_value_range()
222 return INT64_C(1) << (h->unit_magnitude + adjusted_bucket); in hdr_size_of_equivalent_value_range()
231 return INT64_C(1) << (h->unit_magnitude in size_of_equivalent_value_range_given_bucket_indices()
318 buckets_needed_to_cover_value(int64_t value, int32_t sub_bucket_count, int32_t unit_magnitude) buckets_needed_to_cover_value() argument
367 double unit_magnitude = log((double)lowest_discernible_value) / log(2); hdr_calculate_bucket_config() local
[all...]
/third_party/node/deps/histogram/include/hdr/
H A Dhdr_histogram.h21 int32_t unit_magnitude; member
482 int64_t unit_magnitude; member

Completed in 3 milliseconds