function clear_hashtable()
% clear_hashtable()
%  Access the persistent store to reset the hash table.
% 2008-12-29 Dan Ellis [email protected]

global HashTable HashTableCounts

%if exist('HashTable','var') == 0
%   HashTable = [];
%end

nhashes = 2^20;

% 1M hashes x 32 bit entries x 100 entries = 400MB in core
%maxnentries = 100;
maxnentries = 20;

disp(['Max entries per hash = ',num2str(maxnentries)]);

%if length(HashTable) == 0
  HashTable = zeros(maxnentries, nhashes, 'uint32');
  HashTableCounts = zeros(1, nhashes);
%end