hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cf_hist.h File Reference
#include <stdint.h>
#include "cf_atomic.h"
Include dependency graph for cf_hist.h:

Go to the source code of this file.

Classes

struct  cf_histogram_counts_s
struct  cf_histogram_s

Macros

#define CF_N_HIST_COUNTS   64
#define cf_bits_find_first_set(__x)   ffs(__x)
#define cf_bits_find_first_set_64(__x)   ffsll(__x)
#define CF_LT(n)   n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n

Typedefs

typedef struct
cf_histogram_counts_s 
cf_histogram_counts
typedef struct cf_histogram_s cf_histogram

Functions

cf_histogramcf_histogram_create (char *name)
void cf_histogram_dump (cf_histogram *h)
void cf_histogram_get_counts (cf_histogram *h, cf_histogram_counts *hc)
void cf_histogram_insert_data_point (cf_histogram *h, uint64_t start)
int cf_bits_find_last_set (uint32_t c)
int cf_bits_find_last_set_64 (uint64_t c)

Macro Definition Documentation

#define cf_bits_find_first_set (   __x)    ffs(__x)

Definition at line 51 of file cf_hist.h.

#define cf_bits_find_first_set_64 (   __x)    ffsll(__x)

Definition at line 52 of file cf_hist.h.

#define CF_LT (   n)    n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n
#define CF_N_HIST_COUNTS   64

Definition at line 22 of file cf_hist.h.

Typedef Documentation

typedef struct cf_histogram_s cf_histogram

Function Documentation

int cf_bits_find_last_set ( uint32_t  c)
int cf_bits_find_last_set_64 ( uint64_t  c)
cf_histogram* cf_histogram_create ( char *  name)
void cf_histogram_dump ( cf_histogram h)
void cf_histogram_get_counts ( cf_histogram h,
cf_histogram_counts hc 
)
void cf_histogram_insert_data_point ( cf_histogram h,
uint64_t  start 
)