Ignore:
Timestamp:
Jan 19, 2012, 7:53:13 PM (7 years ago)
Author:
ksherdy
Message:

Updated scanword_t type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock128.hpp

    r1853 r1855  
    105105
    106106IDISA_ALWAYS_INLINE uint32_t bitstream_scan(bitblock128_t * v, uint32_t pos) {
    107   unsigned long * bitstream_ptr = (unsigned long *) (((intptr_t) v) + pos/8);
    108   unsigned long bitstream_slice = ((*bitstream_ptr) >> (pos % 8));
    109   if (bitstream_slice != 0) return pos + cfzl(bitstream_slice);
     107  scanword_t * bitstream_ptr = (scanword_t *) (((intptr_t) v) + pos/8);
     108  scanword_t bitstream_slice = ((*bitstream_ptr) >> (pos % 8));
     109  if (bitstream_slice != 0) return pos + scan_forward_zeroes(bitstream_slice);
    110110  else {
    111111    do {
     
    114114    } while (bitstream_slice == 0);
    115115    uint32_t base_posn = 8*((intptr_t) bitstream_ptr - (intptr_t) v);
    116     return base_posn + cfzl(bitstream_slice);
     116    return base_posn + scan_forward_zeroes(bitstream_slice);
    117117  }
    118118}
Note: See TracChangeset for help on using the changeset viewer.