/*
- * Bit Array Signatures -- A Dubious Detector of Duplicates
+ * UCW Library -- Bit Array Signatures -- A Dubious Detector of Duplicates
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
#include "lib/md5.h"
#include <string.h>
-#include <stdlib.h>
struct bitsig {
uns l, m, n, maxn, max_m_mult;
b->maxn = maxn;
b->max_m_mult = (0xffffffff / m) * m;
bzero(b->array, mbytes);
- log(L_DEBUG, "Initialized bitsig array with l=%d, m=%u (%u KB), expecting %d items", b->l, b->m, (mbytes+1023)/1024, maxn);
+ msg(L_DEBUG, "Initialized bitsig array with l=%d, m=%u (%u KB), expecting %d items", b->l, b->m, (mbytes+1023)/1024, maxn);
return b;
}
}
}
if (!was && b->n++ == b->maxn+1)
- log(L_ERROR, "bitsig: Too many items inserted, error rate will be higher than estimated!");
+ msg(L_ERROR, "bitsig: Too many items inserted, error rate will be higher than estimated!");
return was;
}