de-inline some big functions.
This commit is contained in:
parent
05d88f2c48
commit
c24fc6e16a
|
@ -67,10 +67,10 @@ void tr_chokingSetLimit( tr_choking_t * c, int limit )
|
|||
|
||||
#define sortPeersAscending(a,ac,z,zc,n,nc) sortPeers(a,ac,z,zc,n,nc,0)
|
||||
#define sortPeersDescending(a,ac,z,zc,n,nc) sortPeers(a,ac,z,zc,n,nc,1)
|
||||
static inline void sortPeers( tr_peer_t ** all, int allCount,
|
||||
tr_peer_t ** zero, int * zeroCount,
|
||||
tr_peer_t ** nonZero, int * nonZeroCount,
|
||||
int order )
|
||||
static void sortPeers( tr_peer_t ** all, int allCount,
|
||||
tr_peer_t ** zero, int * zeroCount,
|
||||
tr_peer_t ** nonZero, int * nonZeroCount,
|
||||
int order )
|
||||
{
|
||||
int i, shuffle;
|
||||
|
||||
|
|
|
@ -135,8 +135,8 @@ getMTimes( const tr_torrent_t * tor, int * setme_n )
|
|||
return m;
|
||||
}
|
||||
|
||||
static inline void fastResumeWriteData( uint8_t id, void * data, uint32_t size,
|
||||
uint32_t count, FILE * file )
|
||||
static void fastResumeWriteData( uint8_t id, void * data, uint32_t size,
|
||||
uint32_t count, FILE * file )
|
||||
{
|
||||
uint32_t datalen = size * count;
|
||||
|
||||
|
|
|
@ -706,7 +706,7 @@ int _tr_blockPiece( const tr_torrent_t * tor, int block )
|
|||
return block / ( inf->pieceSize / tor->blockSize );
|
||||
}
|
||||
|
||||
inline int _tr_blockSize( const tr_torrent_t * tor, int block )
|
||||
int _tr_blockSize( const tr_torrent_t * tor, int block )
|
||||
{
|
||||
const tr_info_t * inf = &tor->info;
|
||||
int dummy;
|
||||
|
|
Loading…
Reference in New Issue