Data Structures | Macros | Functions
xhistogram.c File Reference
#include "xinclude.h"
#include "xtypes.h"
#include "xdiff.h"

Data Structures

struct  histindex
 
struct  histindex::record
 
struct  region
 

Macros

#define MAX_PTR   INT_MAX
 
#define MAX_CNT   INT_MAX
 
#define LINE_END(n)   (line##n + count##n - 1)
 
#define LINE_END_PTR(n)   (*line##n + *count##n - 1)
 
#define LINE_MAP(i, a)   (i->line_map[(a) - i->ptr_shift])
 
#define NEXT_PTR(index, ptr)   (index->next_ptrs[(ptr) - index->ptr_shift])
 
#define CNT(index, ptr)   ((LINE_MAP(index, ptr))->cnt)
 
#define REC(env, s, l)   (env->xdf##s.recs[l - 1])
 
#define CMP_ENV(xpp, env, s1, l1, s2, l2)   (cmp_recs(xpp, REC(env, s1, l1), REC(env, s2, l2)))
 
#define CMP(i, s1, l1, s2, l2)   (cmp_recs(i->xpp, REC(i->env, s1, l1), REC(i->env, s2, l2)))
 
#define TABLE_HASH(index, side, line)   XDL_HASHLONG((REC(index->env, side, line))->ha, index->table_bits)
 

Functions

int xdl_do_histogram_diff (mmfile_t *file1, mmfile_t *file2, xpparam_t const *xpp, xdfenv_t *env)
 

Macro Definition Documentation

#define CMP (   i,
  s1,
  l1,
  s2,
  l2 
)    (cmp_recs(i->xpp, REC(i->env, s1, l1), REC(i->env, s2, l2)))
#define CMP_ENV (   xpp,
  env,
  s1,
  l1,
  s2,
  l2 
)    (cmp_recs(xpp, REC(env, s1, l1), REC(env, s2, l2)))
#define CNT (   index,
  ptr 
)    ((LINE_MAP(index, ptr))->cnt)
#define LINE_END (   n)    (line##n + count##n - 1)
#define LINE_END_PTR (   n)    (*line##n + *count##n - 1)
#define LINE_MAP (   i,
 
)    (i->line_map[(a) - i->ptr_shift])
#define MAX_CNT   INT_MAX
#define MAX_PTR   INT_MAX
#define NEXT_PTR (   index,
  ptr 
)    (index->next_ptrs[(ptr) - index->ptr_shift])
#define REC (   env,
  s,
  l 
)    (env->xdf##s.recs[l - 1])
#define TABLE_HASH (   index,
  side,
  line 
)    XDL_HASHLONG((REC(index->env, side, line))->ha, index->table_bits)

Function Documentation

int xdl_do_histogram_diff ( mmfile_t file1,
mmfile_t file2,
xpparam_t const *  xpp,
xdfenv_t env 
)