mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
* now that we've got a new function at the top of the CPU hog list, tweak it too.
* reduce large torrents' memory consumption in tr_completion_t.
This commit is contained in:
@@ -580,13 +580,6 @@ tr_bitfieldIsEmpty( const tr_bitfield_t * bitfield )
|
||||
#define BIN(nth) ((nth>>3))
|
||||
#define BIT(nth) (1<<(7-(nth%8)))
|
||||
|
||||
int
|
||||
tr_bitfieldHas( const tr_bitfield_t * bitfield,
|
||||
size_t nth )
|
||||
{
|
||||
return bitfield && (bitfield->bits[ BIN(nth) ] & BIT(nth) );
|
||||
}
|
||||
|
||||
void
|
||||
tr_bitfieldAdd( tr_bitfield_t * bitfield, size_t nth )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user