(root)/
glib-2.79.0/
girepository/
cmph/
fch_structs.h
       1  #ifndef __CMPH_FCH_STRUCTS_H__
       2  #define __CMPH_FCH_STRUCTS_H__
       3  
       4  #include "hash_state.h"
       5  
       6  struct __fch_data_t
       7  {
       8  	cmph_uint32 m;       // words count
       9  	double c;      // constant c
      10  	cmph_uint32  b;      // parameter b = ceil(c*m/(log(m)/log(2) + 1)). Don't need to be stored 
      11  	double p1;     // constant p1 = ceil(0.6*m). Don't need to be stored 
      12  	double p2;     // constant p2 = ceil(0.3*b). Don't need to be stored 
      13  	cmph_uint32 *g;      // g function. 
      14  	hash_state_t *h1;    // h10 function. 
      15  	hash_state_t *h2;    // h20 function.
      16  };
      17  
      18  struct __fch_config_data_t
      19  {
      20  	CMPH_HASH hashfuncs[2];
      21  	cmph_uint32 m;       // words count
      22  	double c;      // constant c
      23  	cmph_uint32  b;      // parameter b = ceil(c*m/(log(m)/log(2) + 1)). Don't need to be stored 
      24  	double p1;     // constant p1 = ceil(0.6*m). Don't need to be stored 
      25  	double p2;     // constant p2 = ceil(0.3*b). Don't need to be stored 
      26  	cmph_uint32 *g;      // g function. 
      27  	hash_state_t *h1;    // h10 function. 
      28  	hash_state_t *h2;    // h20 function.
      29  };
      30  #endif