it was fixed more mistakes in BRZ algorithm

This commit is contained in:
fc_botelho
2005-07-29 03:09:31 +00:00
parent 5212c7d5f3
commit be73e6b2a4
11 changed files with 82 additions and 26 deletions

View File

@@ -38,6 +38,13 @@ void fnv_state_dump(fnv_state_t *state, char **buf, cmph_uint32 *buflen)
return;
}
fnv_state_t * fnv_state_copy(fnv_state_t *src_state)
{
fnv_state_t *dest_state = (fnv_state_t *)malloc(sizeof(fnv_state_t));
dest_state->hashfunc = src_state->hashfunc;
return dest_state;
}
fnv_state_t *fnv_state_load(const char *buf, cmph_uint32 buflen)
{
fnv_state_t *state = (fnv_state_t *)malloc(sizeof(fnv_state_t));