 Timestamp:
 Aug 25, 2012, 12:24:23 PM (6 years ago)
 Location:
 trunk/lib
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/bitblock.hpp
r2327 r2328 73 73 u.bitblock = v; 74 74 uint32_t so_far = 0; 75 for ( int i = 0; i < sizeof(BitBlock)/sizeof(scanword_t); i++) {75 for (unsigned int i = 0; i < sizeof(BitBlock)/sizeof(scanword_t); i++) { 76 76 if (u.elems[i] != 0) return so_far + scan_forward_zeroes(u.elems[i]); 77 77 so_far += 8 * sizeof(scanword_t); … … 89 89 u.bitblock = v; 90 90 uint32_t so_far = 0; 91 for ( int i = sizeof(BitBlock)/sizeof(scanword_t)  1; i >= 0; i) {91 for (unsigned int i = sizeof(BitBlock)/sizeof(scanword_t)  1; i >= 0; i) { 92 92 if (u.elems[i] != 0) return so_far + scan_backward_zeroes(u.elems[i]); 93 93 so_far += 8 * sizeof(scanword_t); 
trunk/lib/bitblock128.hpp
r2275 r2328 101 101 IDISA_ALWAYS_INLINE bitblock128_t convert(uint64_t s) 102 102 { 103 ubitblock b = {b._128 = simd128<128>::constant<0>()}; // = {0}; 103 ubitblock b; 104 b._128 = simd128<128>::constant<0>(); 104 105 b._64[0] = s; 105 106 return b._128;
Note: See TracChangeset
for help on using the changeset viewer.