MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / counts_inc_normalised_atomic

Function counts_inc_normalised_atomic

deps/hdr_histogram/hdr_histogram.c:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static void counts_inc_normalised_atomic(
69 struct hdr_histogram* h, int32_t index, int64_t value)
70{
71 int32_t normalised_index = normalize_index(h, index);
72
73 hdr_atomic_add_fetch_64(&h->counts[normalised_index], value);
74 hdr_atomic_add_fetch_64(&h->total_count, value);
75}
76
77static void update_min_max(struct hdr_histogram* h, int64_t value)
78{

Callers 1

hdr_record_values_atomicFunction · 0.85

Calls 2

normalize_indexFunction · 0.85
hdr_atomic_add_fetch_64Function · 0.85

Tested by

no test coverage detected