Ignore:
Timestamp:
May 10, 2011, 3:43:06 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) small CPU optimization in bitfield.c's countRange()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitfield.c

    r12326 r12422  
    100100        /* middle bytes */
    101101        for( i=first_byte+1; i<b->alloc_count && i<last_byte; ++i )
    102             if( trueBitCount[b->bits[i]] )
    103                 ret += trueBitCount[b->bits[i]];
     102            ret += trueBitCount[b->bits[i]];
    104103
    105104        /* last byte */
Note: See TracChangeset for help on using the changeset viewer.