mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(trunk libT) small CPU optimization in bitfield.c's countRange()
This commit is contained in:
parent
6a38a368d6
commit
0b11909854
1 changed files with 1 additions and 2 deletions
|
@ -99,8 +99,7 @@ countRange( const tr_bitfield * b, size_t begin, size_t end )
|
|||
|
||||
/* middle bytes */
|
||||
for( i=first_byte+1; i<b->alloc_count && i<last_byte; ++i )
|
||||
if( trueBitCount[b->bits[i]] )
|
||||
ret += trueBitCount[b->bits[i]];
|
||||
ret += trueBitCount[b->bits[i]];
|
||||
|
||||
/* last byte */
|
||||
if( last_byte < b->alloc_count ) {
|
||||
|
|
Loading…
Reference in a new issue