Ignore:
Timestamp:
Feb 23, 2011, 3:54:04 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4048 "use bitsets instead of bitfield in tr_completion" -- done.

Excuse the sprawl. Much of this didn't fit into self-contained commits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bitset.h

    r12006 r12012  
    3030tr_bitset;
    3131
    32 void tr_bitsetReserve( tr_bitset * b, size_t size );
    33 void tr_bitsetConstructor( tr_bitset * b, size_t size );
    34 void tr_bitsetDestructor( tr_bitset * b );
     32extern const tr_bitset TR_BITSET_INIT;
     33
     34void tr_bitsetConstruct( tr_bitset * b, size_t bitCount );
     35void tr_bitsetDestruct( tr_bitset * b );
    3536
    3637void tr_bitsetSetHaveAll( tr_bitset * b );
    3738void tr_bitsetSetHaveNone( tr_bitset * b );
    3839
    39 int  tr_bitsetAdd( tr_bitset * b, size_t i );
     40void tr_bitsetSetBitfield( tr_bitset * b, const tr_bitfield * bitfield );
     41
     42void tr_bitsetAdd( tr_bitset * b, size_t i );
     43void tr_bitsetRem( tr_bitset * b, size_t i );
     44void tr_bitsetRemRange ( tr_bitset * b, size_t begin, size_t end );
     45
     46struct tr_benc;
     47tr_bool tr_bitsetFromBenc( tr_bitset * bitset, struct tr_benc * benc );
     48void tr_bitsetToBenc( const tr_bitset * bitset, struct tr_benc * benc );
    4049
    4150/***
     
    4655
    4756tr_bool tr_bitsetHas( const tr_bitset * b, const size_t nth );
     57size_t tr_bitsetCountRange( const tr_bitset * b, const size_t begin, const size_t end );
    4858
    4959void tr_bitsetOr( tr_bitfield * a, const tr_bitset * b );
Note: See TracChangeset for help on using the changeset viewer.