algorithm BRZ included
This commit is contained in:
parent
2948f675d5
commit
0bf7615f53
@ -14,7 +14,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
//#define DEBUG
|
#define DEBUG
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
static int brz_before_gen_graphs(cmph_config_t *mph, cmph_uint32 * disksize, cmph_uint32 * diskoffset);
|
static int brz_before_gen_graphs(cmph_config_t *mph, cmph_uint32 * disksize, cmph_uint32 * diskoffset);
|
||||||
@ -75,7 +75,6 @@ cmph_t *brz_new(cmph_config_t *mph, float c)
|
|||||||
char ** keys_vd = NULL;
|
char ** keys_vd = NULL;
|
||||||
|
|
||||||
FILE * graphs_fd = NULL;
|
FILE * graphs_fd = NULL;
|
||||||
|
|
||||||
DEBUGP("c: %f\n", c);
|
DEBUGP("c: %f\n", c);
|
||||||
brz_config_data_t *brz = (brz_config_data_t *)mph->data;
|
brz_config_data_t *brz = (brz_config_data_t *)mph->data;
|
||||||
brz->m = mph->key_source->nkeys;
|
brz->m = mph->key_source->nkeys;
|
||||||
@ -144,7 +143,7 @@ cmph_t *brz_new(cmph_config_t *mph, float c)
|
|||||||
brz_gen_graphs(mph, disksize, diskoffset, graphs_fd);
|
brz_gen_graphs(mph, disksize, diskoffset, graphs_fd);
|
||||||
free(disksize);
|
free(disksize);
|
||||||
free(diskoffset);
|
free(diskoffset);
|
||||||
|
DEBUGP("Graphs generated\n");
|
||||||
// codigo do algoritmo...
|
// codigo do algoritmo...
|
||||||
brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
|
brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
|
||||||
brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
|
brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
|
||||||
|
Loading…
Reference in New Issue
Block a user