summaryrefslogtreecommitdiff
path: root/girepository/cmph/chd_structs_ph.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-11-11 15:01:07 -0500
committerColin Walters <walters@verbum.org>2010-12-03 16:03:31 -0500
commit3a94a5e36287072486831eb68bfe43a0e1c8ea78 (patch)
tree59eb83ba02a9acfd7032c2199d6e523e89efe418 /girepository/cmph/chd_structs_ph.h
parentf6e5defff5a8d8ba83e0b414496d28b5e2361f39 (diff)
downloadgobject-introspection-3a94a5e36287072486831eb68bfe43a0e1c8ea78.tar.gz
Import CMPH 1.0
This will be used for typelib indexing. See README-CMPH-IMPORT.txt for more information.
Diffstat (limited to 'girepository/cmph/chd_structs_ph.h')
-rw-r--r--girepository/cmph/chd_structs_ph.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/girepository/cmph/chd_structs_ph.h b/girepository/cmph/chd_structs_ph.h
new file mode 100644
index 00000000..d8692182
--- /dev/null
+++ b/girepository/cmph/chd_structs_ph.h
@@ -0,0 +1,29 @@
+#ifndef __CMPH_CHD_PH_STRUCTS_H__
+#define __CMPH_CHD_PH_STRUCTS_H__
+
+#include "hash_state.h"
+#include "compressed_seq.h"
+
+struct __chd_ph_data_t
+{
+ compressed_seq_t * cs; // compressed displacement values
+ cmph_uint32 nbuckets; // number of buckets
+ cmph_uint32 n; // number of bins
+ hash_state_t *hl; // linear hash function
+};
+
+struct __chd_ph_config_data_t
+{
+ CMPH_HASH hashfunc; // linear hash function to be used
+ compressed_seq_t * cs; // compressed displacement values
+ cmph_uint32 nbuckets; // number of buckets
+ cmph_uint32 n; // number of bins
+ hash_state_t *hl; // linear hash function
+
+ cmph_uint32 m; // number of keys
+ cmph_uint8 use_h; // flag to indicate the of use of a heuristic (use_h = 1)
+ cmph_uint32 keys_per_bin;//maximum number of keys per bin
+ cmph_uint32 keys_per_bucket; // average number of keys per bucket
+ cmph_uint8 *occup_table; // table that indicates occupied positions
+};
+#endif