Changeset 4032 for trunk


Ignore:
Timestamp:
Aug 17, 2014, 3:42:46 AM (4 years ago)
Author:
cameron
Message:

Bug fix in parallel count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_iterator.hpp

    r3670 r4032  
    165165    }
    166166    if ((bitblock_count & 1) != 0) {  // Should be compiled out if bitblock_count is even.
    167         sum8 = simd<8>::add(sum8, simd<8>::popcount(remaining._bitblock[bitblock_count]));
     167        sum8 = simd<8>::add(sum8, simd<8>::popcount(remaining._bitblock[bitblock_count-1]));
    168168    }
    169169    ct = mvmd<32>::extract<0>(simd<128>::add_hl(simd<64>::add_hl(simd<32>::add_hl(simd<16>::add_hl(sum8)))));
Note: See TracChangeset for help on using the changeset viewer.