 Timestamp:
 Jan 27, 2012, 7:48:11 AM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/bitblock128.hpp
r1855 r1889 86 86 u.bitblock = v; 87 87 uint32_t so_far = 0; 88 for (int i = 0; i < sizeof(bitblock128_t)/sizeof( long); i++) {88 for (int i = 0; i < sizeof(bitblock128_t)/sizeof(scanword_t); i++) { 89 89 if (u.elems[i] != 0) return so_far + scan_forward_zeroes(u.elems[i]); 90 so_far += 8 * sizeof( long);90 so_far += 8 * sizeof(scanword_t); 91 91 } 92 92 return so_far; … … 97 97 u.bitblock = v; 98 98 uint32_t so_far = 0; 99 for (int i = sizeof(bitblock128_t)/sizeof( long)  1; i >= 0; i) {99 for (int i = sizeof(bitblock128_t)/sizeof(scanword_t)  1; i >= 0; i) { 100 100 if (u.elems[i] != 0) return so_far + scan_backward_zeroes(u.elems[i]); 101 so_far += 8 * sizeof( long);101 so_far += 8 * sizeof(scanword_t); 102 102 } 103 103 return so_far;
Note: See TracChangeset
for help on using the changeset viewer.