Home | History | Annotate | Download | only in src

Lines Matching defs:BlockHash

17 #include "blockhash.h"
28 BlockHash::BlockHash(const char* source_data,
38 BlockHash::~BlockHash() { }
43 COMPILE_ASSERT(BlockHash::kBlockSize >= 2, kBlockSize_must_be_at_least_2);
52 COMPILE_ASSERT((BlockHash::kBlockSize & (BlockHash::kBlockSize - 1)) == 0,
55 bool BlockHash::Init(bool populate_hash_table) {
59 LOG(DFATAL) << "Init() called twice for same BlockHash object" << LOG_ENDL;
80 const BlockHash* BlockHash::CreateDictionaryHash(const char* dictionary_data,
82 BlockHash* new_dictionary_hash = new BlockHash(dictionary_data,
93 BlockHash* BlockHash::CreateTargetHash(const char* target_data,
96 BlockHash* new_target_hash = new BlockHash(target_data,
108 size_t BlockHash::CalcTableSize(const size_t dictionary_size) {
152 void BlockHash::AddBlock(uint32_t hash_value) {
154 LOG(DFATAL) << "BlockHash::AddBlock() called before BlockHash::Init()"
163 LOG(DFATAL) << "BlockHash::AddBlock() called"
170 LOG(DFATAL) << "Internal error in BlockHash::AddBlock(): "
186 LOG(DFATAL) << "Internal error in BlockHash::AddBlock(): "
199 void BlockHash::AddAllBlocks() {
203 void BlockHash::AddAllBlocksThroughIndex(int end_index) {
205 LOG(DFATAL) << "BlockHash::AddAllBlocksThroughIndex() called"
212 LOG(DFATAL) << "BlockHash::AddAllBlocksThroughIndex() called"
234 COMPILE_ASSERT((BlockHash::kBlockSize % sizeof(uword_t)) == 0,
271 static const size_t kWordsPerBlock = BlockHash::kBlockSize / sizeof(uword_t);
275 bool BlockHash::BlockCompareWords(const char* block1, const char* block2) {
289 return memcmp(block1, block2, BlockHash::kBlockSize) == 0;
293 bool BlockHash::BlockContentsMatch(const char* block1, const char* block2) {
297 inline int BlockHash::SkipNonMatchingBlocks(int block_number,
314 inline int BlockHash::FirstMatchingBlockInline(uint32_t hash_value,
320 int BlockHash::FirstMatchingBlock(uint32_t hash_value,
325 int BlockHash::NextMatchingBlock(int block_number,
340 inline bool BlockHash::TooManyMatches(int* match_counter) {
349 int BlockHash::MatchingBytesToLeft(const char* source_match_start,
370 int BlockHash::MatchingBytesToRight(const char* source_match_end,
391 void BlockHash::FindBestMatch(uint32_t hash_value,