Changeset 1881 for trunk/lib


Ignore:
Timestamp:
Jan 25, 2012, 2:29:32 PM (7 years ago)
Author:
ksherdy
Message:

Updated comments, debug statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/hash_util.hpp

    r1877 r1881  
    2121    hash<8> - returns a hash value based on byte indexed and byte length symbols
    2222
    23     Assumes 64 bits safety. That is, it is safe to dereference 64 bits beyion address
    24     the address of the indexed positio (&buffer[0] + idx (bits/bytes)).
     23    Assumes 64 bits safety. That is, it is safe to dereference 64 bits beyond
     24    the address of the indexed position (&buffer[0] + idx (bits|bytes)).
    2525*/
    2626
     
    7575
    7676#ifndef NDEBUG
    77     cout << "Index (bits or bytes): " << idx << endl;
    78     cout << "Symbol Lgth (bytes): " << lgth << endl;
    79     cout << "Hash Bits: " << hash_bits << endl;
     77    cout << "Index Lgth: " << idx << endl;
     78    cout << "Symbol Lgth: " << lgth << endl;
     79    cout << "Hash Bits:   " << hash_bits << endl;
    8080    uint64_t masked_x0 = x0 & mask;
    8181    uint64_t shift_masked_x1 = (x1 >> ((lgth*FW) - hash_bits)) & mask;
Note: See TracChangeset for help on using the changeset viewer.