Ignore:
Timestamp:
Nov 7, 2011, 3:22:00 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: Update symtab library for dictionary div2 delimiter. Fixed some compile errors for log grouping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symtab/bitstream_hash_table.h

    r1518 r1665  
    1818#define BITSTREAM_HASH_TABLE_H
    1919
    20 #define DEBUG_BHT 0
     20#define DEBUm_BHT 0
    2121
    2222#define DEFAULT_TABLE_SIZE 256
     
    5151
    5252protected:
    53     CHAIN ** g_table;
    54     unsigned int g_tableSize;
    55     inline unsigned int getBucket(const int hashvalue, unsigned int g_tableSize);
     53    CHAIN ** m_table;
     54    unsigned int m_tableSize;
     55    inline unsigned int getBucket(const int hashvalue, unsigned int tableSize);
    5656
    5757private:
     
    7474{
    7575    CHAIN** table = (CHAIN**) calloc(size, sizeof(CHAIN*));
    76     memset(table, 0, g_tableSize*sizeof(CHAIN*));
     76    memset(table, 0, m_tableSize*sizeof(CHAIN*));
    7777    return table;
    7878}
     
    8989inline unsigned int BitStreamHashTable::nextTableSize()
    9090{
    91     return g_tableSize << 1; // double the size
     91    return m_tableSize << 1; // double the size
    9292}
    9393
Note: See TracChangeset for help on using the changeset viewer.