| 482 | } |
| 483 | |
| 484 | bool hdr_record_values_atomic(struct hdr_histogram* h, int64_t value, int64_t count) |
| 485 | { |
| 486 | int32_t counts_index; |
| 487 | |
| 488 | if (value < 0) |
| 489 | { |
| 490 | return false; |
| 491 | } |
| 492 | |
| 493 | counts_index = counts_index_for(h, value); |
| 494 | |
| 495 | if (counts_index < 0 || h->counts_len <= counts_index) |
| 496 | { |
| 497 | return false; |
| 498 | } |
| 499 | |
| 500 | counts_inc_normalised_atomic(h, counts_index, count); |
| 501 | update_min_max_atomic(h, value); |
| 502 | |
| 503 | return true; |
| 504 | } |
| 505 | |
| 506 | bool hdr_record_corrected_value(struct hdr_histogram* h, int64_t value, int64_t expected_interval) |
| 507 | { |
no test coverage detected