Ignore:
Timestamp:
Sep 25, 2007, 5:43:39 PM (15 years ago)
Author:
charles
Message:

tweak the bitfield code to be a little faster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r3117 r3164  
    180180void tr_bitfieldRemRange ( tr_bitfield*, size_t begin, size_t end );
    181181
     182int    tr_bitfieldHas( const tr_bitfield*, size_t bit );
    182183int    tr_bitfieldIsEmpty( const tr_bitfield* );
    183184size_t tr_bitfieldCountTrueBits( const tr_bitfield* );
     
    186187tr_bitfield* tr_bitfieldAnd( tr_bitfield*, const tr_bitfield* );
    187188
    188 #define tr_bitfieldHas(bitfield,nth) \
    189     ( ( bitfield ) && ( (bitfield)->bits[(nth)>>3] & 128 >>( (nth) & 7 ) ) )
    190 
    191189#endif
Note: See TracChangeset for help on using the changeset viewer.