10 void init(unsigned power2)
12 _mask = (1 << power2) - 1;
13 _hashmap = (T**)malloc((_mask+1) * sizeof(T*));
24 memset(_hashmap, 0, (_mask+1) * sizeof(T*));
27 void insert(unsigned hash, T* data)
29 _hashmap[hash & _mask] = data;
32 T* find(unsigned hash)
34 return _hashmap[hash & _mask];