Skip to content

Commit d955466

Browse files
committed
fixup! deps: update histogram to 0.12.0
1 parent 6040f79 commit d955466

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* hdr_histogram_internal.h
3+
* Non-public helpers shared across library translation units (not installed,
4+
* not part of the public API). Distinct from hdr_tests.h, which is for helpers
5+
* used only by the test suite.
6+
*/
7+
#ifndef HDR_HISTOGRAM_INTERNAL_H
8+
#define HDR_HISTOGRAM_INTERNAL_H
9+
10+
#include <hdr/hdr_histogram.h>
11+
12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
16+
/* Map a recorded value to its counts[] index. Assumes value >= 0 (callers guard);
17+
defined in hdr_histogram.c and used by the log codec and the packed variant. */
18+
int32_t counts_index_for(const struct hdr_histogram* h, int64_t value);
19+
20+
#ifdef __cplusplus
21+
}
22+
#endif
23+
24+
#endif

0 commit comments

Comments
 (0)