X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbitsig.c;h=21215a4b46023d2ebcbd76636e7f3e0fa06e1cba;hb=156301aa8c7fd24d49ed27cfbd1afc10ccb7bc58;hp=85b18a6b3e60ae22b14c49519f10ad33b78ab930;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/bitsig.c b/ucw/bitsig.c index 85b18a6b..21215a4b 100644 --- a/ucw/bitsig.c +++ b/ucw/bitsig.c @@ -41,25 +41,25 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/bitsig.h" -#include "ucw/md5.h" +#include +#include +#include #include 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) @@ -89,7 +89,7 @@ bitsig_hash_init(struct bitsig *b, byte *item) b->hindex = 0; } -static inline uns +static inline uint bitsig_hash_bit(struct bitsig *b) { u32 h; @@ -106,7 +106,7 @@ bitsig_hash_bit(struct bitsig *b) int bitsig_member(struct bitsig *b, byte *item) { - uns i, bit; + uint i, bit; bitsig_hash_init(b, item); for (i=0; il; i++) @@ -121,7 +121,7 @@ bitsig_member(struct bitsig *b, byte *item) int bitsig_insert(struct bitsig *b, byte *item) { - uns i, bit, was; + uint i, bit, was; bitsig_hash_init(b, item); was = 1;