Data-Histogram-Shared

 view release on metacpan or  search on metacpan

hist.h  view on Meta::CPAN

}

/* counts_len clamped to what fits (also rejects a negative/huge stored len). */
static inline int64_t hist_counts_len_safe(HistHandle *h) {
    int64_t cap = hist_counts_capacity(h);
    int64_t len = h->hdr->counts_len;
    return (len < 0 || len > cap) ? cap : len;
}

/* ================================================================
 * HdrHistogram geometry -- canonical formulas (see HdrHistogram_c).
 * All derived fields are computed once here and stored in the header.
 * ================================================================ */

typedef struct {
    int64_t lowest;
    int64_t highest;
    int32_t sig_figs;
    int32_t unit_magnitude;
    int32_t sub_bucket_count_magnitude;
    int32_t sub_bucket_half_count_magnitude;



( run in 0.898 second using v1.01-cache-2.11-cpan-9581c071862 )