* 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:
Charles Kerr
2007-07-28 22:47:10 +00:00
parent cd9f44652b
commit 7cfafc5371
3 changed files with 12 additions and 19 deletions

View File

@@ -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 )
{