Changeset 1939 for trunk/lib


Ignore:
Timestamp:
Feb 16, 2012, 11:00:44 PM (7 years ago)
Author:
ksherdy
Message:

Updated assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/hash.hpp

    r1936 r1939  
    3838static IDISA_ALWAYS_INLINE uint64_t bit_offset_slice(const uint8_t * base, const int32_t offset, const uint32_t slice_size) {
    3939    assert(slice_size > 0 && slice_size <= 64);
    40     assert(offset & (8-1) >= 0); // negative shifts undefined in C standard
     40    cout << (offset & (8-1) >= 0) << endl;
     41    assert((offset & (8-1)) >= 0); // negative shifts undefined in C standard
    4142
    4243    uint64_t shift = *((uint64_t *)(base + (offset/8))) >> (offset & (8-1));
Note: See TracChangeset for help on using the changeset viewer.