Ignore:
Timestamp:
Oct 5, 2011, 7:41:38 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: hash table implementation for paralel bitstream based length sorting (PBGS) now auto-resizes. Fixed flipBit function used by Div2 grouping strategy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/symtab/bitstream_id_hash_table.h

    r1462 r1518  
    3030        unsigned int BitStreamIdentityHashTable::Lookup_Name(char * name, const int hashvalue)
    3131{
    32     unsigned int hash = getIndex(hashvalue);
     32    unsigned int bucket = getBucket(hashvalue, g_tableSize);
    3333
    3434    // Look up the value in the chain
    35     for(CHAIN* chain = g_table[hash]; chain != NULL; chain = chain->next) {
     35    for(CHAIN* chain = g_table[bucket]; chain != NULL; chain = chain->next) {
    3636#if DEBUG_BHT
    3737        printf ("Check symbol: %s\n", chain->key);
Note: See TracChangeset for help on using the changeset viewer.