Lines Matching refs:storeIndex
3867 checkPartition( const struct peer_candidate * candidates, int left, int right, uint64_t pivotScore, int storeIndex )
3871 assert( storeIndex >= left );
3872 assert( storeIndex <= right );
3873 assert( candidates[storeIndex].score == pivotScore );
3875 for( i=left; i<storeIndex; ++i )
3877 for( i=storeIndex+1; i<=right; ++i )
3890 int storeIndex;
3899 storeIndex = left;
3904 tmp = candidates[storeIndex];
3905 candidates[storeIndex] = candidates[i];
3907 storeIndex++;
3913 candidates[right] = candidates[storeIndex];
3914 candidates[storeIndex] = tmp;
3917 assert( checkPartition( candidates, left, right, pivotValue.score, storeIndex ) );
3919 return storeIndex;