Changeset 3164 for trunk/libtransmission/utils.h
- Timestamp:
- Sep 25, 2007, 5:43:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/utils.h
r3117 r3164 180 180 void tr_bitfieldRemRange ( tr_bitfield*, size_t begin, size_t end ); 181 181 182 int tr_bitfieldHas( const tr_bitfield*, size_t bit ); 182 183 int tr_bitfieldIsEmpty( const tr_bitfield* ); 183 184 size_t tr_bitfieldCountTrueBits( const tr_bitfield* ); … … 186 187 tr_bitfield* tr_bitfieldAnd( tr_bitfield*, const tr_bitfield* ); 187 188 188 #define tr_bitfieldHas(bitfield,nth) \189 ( ( bitfield ) && ( (bitfield)->bits[(nth)>>3] & 128 >>( (nth) & 7 ) ) )190 191 189 #endif
Note: See TracChangeset
for help on using the changeset viewer.