Ignore:
Timestamp:
Aug 20, 2008, 1:45:52 PM (13 years ago)
Author:
muks
Message:

Make tr_bitfieldHas() a macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.h

    r6517 r6595  
    262262void tr_bitfieldDifference( tr_bitfield *, const tr_bitfield * );
    263263
    264 int    tr_bitfieldHas( const tr_bitfield*, size_t bit );
    265264int    tr_bitfieldIsEmpty( const tr_bitfield* );
    266265size_t tr_bitfieldCountTrueBits( const tr_bitfield* );
     
    290289    ( (bitfield) && ((bitfield)->bits) && ((high)<(bitfield)->bitCount ) )
    291290
     291#define tr_bitfieldHas(bitfield,nth) \
     292    ( tr_bitfieldTestFast( bitfield, nth ) && \
     293      tr_bitfieldHasFast( bitfield, nth ) )
     294
    292295double tr_getRatio( double numerator, double denominator );
    293296
Note: See TracChangeset for help on using the changeset viewer.