7 #include "wvhashtable.h"
13 WvHashTableBase::WvHashTableBase(
unsigned _numslots)
16 while ((_numslots >>= 1) != 0)
18 numslots = (1 << slides) - 1;
31 for (prev = i.cur(); prev->next; prev = i.next())
33 if (compare(data, prev->next->data))
40 void *WvHashTableBase::genfind(
WvListBase *wvslots,
const void *data,
43 WvLink *prev = prevlink(wvslots, data, hash);
45 return prev->next->data;
55 for (
unsigned i = 0; i < numslots; i++)
63 for (
unsigned i = 0; i < numslots; i++)
70 WvLink *WvHashTableBase::IterBase::next()
89 _link = cur->head.next;
94 tblindex = cur - begin;