| 66 | } |
| 67 | |
| 68 | static 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 | |
| 77 | static void update_min_max(struct hdr_histogram* h, int64_t value) |
| 78 | { |
no test coverage detected