29 #include "../precompiled.h"
93 int *oldIndexChain, mod, newSize;
101 newSize = newIndexSize;
115 delete[] oldIndexChain;
125 int i,
index, totalItems, *numHashItems, average, error, e;
138 totalItems += numHashItems[
i];
141 if ( totalItems <= 1 ) {
142 delete[] numHashItems;
148 e = abs( numHashItems[i] - average );
153 delete[] numHashItems;
154 return 100 - (error * 100 / totalItems);
void ResizeIndex(const int newIndexSize)
assert(prefInfo.fullscreenBtn)
void Allocate(const int newHashSize, const int newIndexSize)
void Init(const int initialHashSize, const int initialIndexSize)
static int INVALID_INDEX[1]
static bool IsPowerOfTwo(int x)
#define DEFAULT_HASH_GRANULARITY
int GetSpread(void) const