Lines Matching refs:kBlockSize
43 COMPILE_ASSERT(BlockHash::kBlockSize >= 2, kBlockSize_must_be_at_least_2);
52 COMPILE_ASSERT((BlockHash::kBlockSize & (BlockHash::kBlockSize - 1)) == 0,
161 static_cast<int>(source_size_ / kBlockSize); // round down in AddBlock()
210 const int last_index_added = last_block_added_ * kBlockSize; in AddAllBlocksThroughIndex()
222 int last_legal_hash_index = static_cast<int>(source_size() - kBlockSize); in AddAllBlocksThroughIndex()
229 AddBlock(RollingHash<kBlockSize>::Hash(block_ptr)); in AddAllBlocksThroughIndex()
230 block_ptr += kBlockSize; in AddAllBlocksThroughIndex()
234 COMPILE_ASSERT((BlockHash::kBlockSize % sizeof(uword_t)) == 0,
271 static const size_t kWordsPerBlock = BlockHash::kBlockSize / sizeof(uword_t); in BlockCompareWordsInline()
289 return memcmp(block1, block2, BlockHash::kBlockSize) == 0; in BlockContentsMatchInline()
302 &source_data_[block_number * kBlockSize])) { in SkipNonMatchingBlocks()
401 int source_match_offset = block_number * kBlockSize; in FindBestMatch()
402 const int source_match_end = source_match_offset + kBlockSize; in FindBestMatch()
406 const int target_match_end = target_match_offset + kBlockSize; in FindBestMatch()
408 size_t match_size = kBlockSize; in FindBestMatch()