* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/bitsig.h"
-#include "ucw/md5.h"
+#include <ucw/lib.h>
+#include <ucw/bitsig.h>
+#include <ucw/md5.h>
#include <string.h>
struct bitsig {
- uns l, m, n, maxn, max_m_mult;
+ uint l, m, n, maxn, max_m_mult;
u32 hash[4];
- uns hindex;
+ uint hindex;
byte array[0];
};
struct bitsig *
-bitsig_init(uns perrlog, uns maxn)
+bitsig_init(uint perrlog, uint maxn)
{
struct bitsig *b;
u64 m;
- uns mbytes;
+ uint mbytes;
m = ((u64) maxn * perrlog * 145 + 99) / 100;
if (m >= (u64) 1 << 32)
b->hindex = 0;
}
-static inline uns
+static inline uint
bitsig_hash_bit(struct bitsig *b)
{
u32 h;
int
bitsig_member(struct bitsig *b, byte *item)
{
- uns i, bit;
+ uint i, bit;
bitsig_hash_init(b, item);
for (i=0; i<b->l; i++)
int
bitsig_insert(struct bitsig *b, byte *item)
{
- uns i, bit, was;
+ uint i, bit, was;
bitsig_hash_init(b, item);
was = 1;