/external/chromium_org/third_party/WebKit/Source/wtf/ |
D | StringHasherTest.cpp | 57 StringHasher hasher; in TEST() local 60 EXPECT_EQ(emptyStringHash, hasher.hash()); in TEST() 61 EXPECT_EQ(emptyStringHash & 0xFFFFFF, hasher.hashWithTop8BitsMasked()); in TEST() 66 StringHasher hasher; in TEST() local 69 hasher = StringHasher(); in TEST() 70 hasher.addCharacter(0); in TEST() 71 EXPECT_EQ(singleNullCharacterHash, hasher.hash()); in TEST() 72 EXPECT_EQ(singleNullCharacterHash & 0xFFFFFF, hasher.hashWithTop8BitsMasked()); in TEST() 75 hasher = StringHasher(); in TEST() 76 hasher.addCharacter(testAUChars[0]); in TEST() [all …]
|
D | StringHasher.h | 161 StringHasher hasher; in computeHashAndMaskTop8Bits() local 162 hasher.addCharactersAssumingAligned<T, Converter>(data, length); in computeHashAndMaskTop8Bits() 163 return hasher.hashWithTop8BitsMasked(); in computeHashAndMaskTop8Bits() 173 StringHasher hasher; in computeHash() local 174 hasher.addCharactersAssumingAligned<T, Converter>(data, length); in computeHash() 175 return hasher.hash(); in computeHash()
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractCompositeHashFunction.java | 37 for (Hasher hasher : hashers) { in newHasher() 38 hasher.putByte(b); in newHasher() 44 for (Hasher hasher : hashers) { in newHasher() 45 hasher.putBytes(bytes); in newHasher() 51 for (Hasher hasher : hashers) { in newHasher() 52 hasher.putBytes(bytes, off, len); in newHasher() 58 for (Hasher hasher : hashers) { in newHasher() 59 hasher.putShort(s); in newHasher() 65 for (Hasher hasher : hashers) { in newHasher() 66 hasher.putInt(i); in newHasher() [all …]
|
/external/stlport/stlport/stl/ |
D | _hash_set.h | 59 typedef typename _Ht::hasher hasher; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef 74 hasher hash_funct() const { return _M_ht.hash_funct(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS() 84 : _M_ht(0, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS() 86 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS() 87 hash_set(size_type __n, const hasher& __hf) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 90 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql, in _STLP_CREATE_HASH_ITERATOR_TRAITS() 93 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 95 hash_set(size_type __n, const hasher& __hf, const key_equal& __eql, in _STLP_CREATE_HASH_ITERATOR_TRAITS() 108 : _M_ht(0, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 112 : _M_ht(__n, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS() [all …]
|
D | _hash_map.h | 65 typedef typename _Ht::hasher hasher; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef 80 hasher hash_funct() const { return _M_ht.hash_funct(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS() 88 hash_map() : _M_ht(0, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS() 90 : _M_ht(__n, hasher(), key_equal(), allocator_type()) {} in _STLP_CREATE_HASH_ITERATOR_TRAITS() 91 hash_map(size_type __n, const hasher& __hf) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 93 hash_map(size_type __n, const hasher& __hf, const key_equal& __eql, in _STLP_CREATE_HASH_ITERATOR_TRAITS() 106 : _M_ht(0, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 110 : _M_ht(__n, hasher(), key_equal(), allocator_type()) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 114 const hasher& __hf) in _STLP_CREATE_HASH_ITERATOR_TRAITS() 120 const hasher& __hf, const key_equal& __eql) in _STLP_CREATE_HASH_ITERATOR_TRAITS() [all …]
|
D | _unordered_set.h | 51 typedef typename _Ht::hasher hasher; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef 68 hasher hash_function() const { return _M_ht.hash_funct(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS() 77 explicit unordered_set(size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 90 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 97 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 104 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 201 typedef typename _Ht::hasher hasher; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef 218 hasher hash_function() const { return _M_ht.hash_funct(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS() 227 explicit unordered_multiset(size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 240 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() [all …]
|
D | _unordered_map.h | 57 typedef typename _Ht::hasher hasher; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef 74 hasher hash_function() const { return _M_ht.hash_funct(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS() 83 explicit unordered_map(size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 96 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 103 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 110 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 225 typedef typename _Ht::hasher hasher; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef 242 hasher hash_function() const { return _M_ht.hash_funct(); } in _STLP_CREATE_HASH_ITERATOR_TRAITS() 251 explicit unordered_multimap(size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() 264 size_type __n = 0, const hasher& __hf = hasher(), in _STLP_CREATE_HASH_ITERATOR_TRAITS() [all …]
|
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
D | backward_references.cc | 33 Hasher* hasher, in CreateBackwardReferences() argument 50 hasher->set_average_cost(average_cost); in CreateBackwardReferences() 68 hasher->set_insert_length(insert_length); in CreateBackwardReferences() 69 bool match_found = hasher->FindLongestMatch( in CreateBackwardReferences() 81 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 102 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 103 match_found = hasher->FindLongestMatch( in CreateBackwardReferences() 157 hasher->set_last_distance(best_dist); in CreateBackwardReferences() 165 hasher->Store(ringbuffer + i, i + i_diff); in CreateBackwardReferences() 170 if (hasher->HasStaticDictionary() && in CreateBackwardReferences() [all …]
|
/external/chromium_org/sdch/open-vcdiff/src/ |
D | rolling_hash_test.cc | 106 RollingHash<kBlockSize> hasher; in BM_DefaultHash() local 110 result_array[i] = hasher.Hash(&buffer[i]); in BM_DefaultHash() 117 RollingHash<kBlockSize> hasher; in BM_UpdateHash() local 120 uint32_t running_hash = hasher.Hash(buffer); in BM_UpdateHash() 122 running_hash = hasher.UpdateHash(running_hash, in BM_UpdateHash() 139 RollingHash<kBlockSize> hasher; in UpdateHashMatchesHashForBlockSize() local 144 uint32_t running_hash = hasher.Hash(buffer_); in UpdateHashMatchesHashForBlockSize() 147 running_hash = hasher.UpdateHash(running_hash, in UpdateHashMatchesHashForBlockSize() 152 EXPECT_EQ(running_hash, hasher.Hash(&buffer_[i + 1 - kBlockSize])); in UpdateHashMatchesHashForBlockSize()
|
D | vcdiffengine.cc | 167 RollingHash<BlockHash::kBlockSize> hasher; in EncodeInternal() local 188 uint32_t hash_value = hasher.Hash(candidate_pos); in EncodeInternal() 206 hash_value = hasher.Hash(candidate_pos); in EncodeInternal() 223 hash_value = hasher.UpdateHash(hash_value, in EncodeInternal()
|
/external/libcxx/include/ext/ |
D | hash_set | 29 typedef Hash hasher; 42 explicit hash_set(size_type n = 193, const hasher& hf = hasher(), 47 size_type n = 193, const hasher& hf = hasher(), 76 hasher hash_funct() const; 115 typedef Hash hasher; 128 explicit hash_multiset(size_type n = 193, const hasher& hf = hasher(), 133 size_type n = 193, const hasher& hf = hasher(), 162 hasher hash_funct() const; 221 typedef _Hash hasher; 228 typedef __hash_table<value_type, hasher, key_equal, allocator_type> __table; [all …]
|
D | hash_map | 29 typedef Hash hasher; 43 explicit hash_map(size_type n = 193, const hasher& hf = hasher(), 48 size_type n = 193, const hasher& hf = hasher(), 77 hasher hash_funct() const; 118 typedef Hash hasher; 132 explicit hash_multimap(size_type n = 193, const hasher& hf = hasher(), 137 size_type n = 193, const hasher& hf = hasher(), 167 hasher hash_funct() const; 485 typedef _Hash hasher; 494 typedef __hash_map_hasher<__value_type, hasher> __hasher; [all …]
|
/external/libcxx/include/ |
D | unordered_set | 31 typedef Hash hasher; 48 is_nothrow_default_constructible<hasher>::value && 51 explicit unordered_set(size_type n, const hasher& hf = hasher(), 56 size_type n = 0, const hasher& hf = hasher(), 64 is_nothrow_move_constructible<hasher>::value && 69 const hasher& hf = hasher(), const key_equal& eql = key_equal(), 72 unordered_set(size_type n, const hasher& hf, const allocator_type& a); // C++14 77 const hasher& hf, const allocator_type& a); // C++14 80 const hasher& hf, const allocator_type& a); // C++14 87 is_nothrow_move_assignable<hasher>::value && [all …]
|
D | unordered_map | 31 typedef Hash hasher; 49 is_nothrow_default_constructible<hasher>::value && 52 explicit unordered_map(size_type n, const hasher& hf = hasher(), 57 size_type n = 0, const hasher& hf = hasher(), 65 is_nothrow_move_constructible<hasher>::value && 70 const hasher& hf = hasher(), const key_equal& eql = key_equal(), 73 : unordered_map(n, hasher(), key_equal(), a) {} // C++14 74 unordered_map(size_type n, const hasher& hf, const allocator_type& a) 78 : unordered_map(f, l, n, hasher(), key_equal(), a) {} // C++14 80 unordered_map(InputIterator f, InputIterator l, size_type n, const hasher& hf, [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
D | FontFaceCreationParams.h | 101 StringHasher hasher; in hash() local 106 … hasher.addCharacters(reinterpret_cast<const LChar*>(m_filename.data()), m_filename.length()); in hash() 107 hasher.addCharacters(reinterpret_cast<const LChar*>(&m_ttcIndex), sizeof(m_ttcIndex)); in hash() 108 …hasher.addCharacters(reinterpret_cast<const LChar*>(&m_fontconfigInterfaceId), sizeof(m_fontconfig… in hash() 109 return hasher.hash(); in hash()
|
D | WidthCache.h | 71 StringHasher hasher; in SmallStringKey() local 80 hasher.addCharactersAssumingAligned(characters[i], characters[i + 1]); in SmallStringKey() 86 hasher.addCharacter(characters[i]); in SmallStringKey() 89 m_hash = hasher.hash(); in SmallStringKey()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | Murmur3Hash32Test.java | 33 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid() 34 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid() 35 return hasher.hash().asBytes(); in testParanoid()
|
D | Murmur3Hash128Test.java | 62 Hasher hasher = murmur3_128(seed).newHasher(); in testParanoid() 63 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid() 64 return hasher.hash().asBytes(); in testParanoid()
|
D | HashFunctionsTest.java | 31 HashFunction hasher = Hashing.goodFastHash(i); in testGoodFastHash() local 32 assertTrue(hasher.bits() >= i); in testGoodFastHash() 33 assertInvariants(hasher); in testGoodFastHash()
|
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/ |
D | build_jsdoc_validator_jar.py | 40 def traverse(hasher, path): argument 45 hasher.update('d ' + quoted_name + '\n') 47 traverse(hasher, os.path.join(path, entry)) 49 hasher.update('r ' + quoted_name + ' ') 50 hasher.update(str(info.st_size) + ' ') 53 hasher.update(f_hash + '\n')
|
/external/chromium_org/chrome/tools/profile_reset/ |
D | jtl_compiler.cc | 98 const jtl::Hasher& hasher, in TranscodeInstruction() argument 119 target->WriteHash(hasher.GetHash(value)); in TranscodeInstruction() 129 target->WriteHash(hasher.GetHash(value)); in TranscodeInstruction() 208 jtl::Hasher hasher(hash_seed); in Compile() local 240 operation_name, arguments, ends_sentence, hasher, &bytecode_writer); in Compile()
|
/external/chromium_org/third_party/WebKit/Source/build/scripts/ |
D | make_names.py | 32 import hasher 61 'hash': hasher.hash,
|
D | make_element_type_helpers.py | 9 import hasher 45 'hash': hasher.hash,
|
D | make_qualified_names.py | 32 import hasher 57 'hash': hasher.hash,
|
/external/bison/lib/ |
D | hash.c | 71 Hash_hasher hasher; member 251 size_t n = table->hasher (key, table->n_buckets); in safe_hasher() 595 Hash_hasher hasher, Hash_comparator comparator, in hash_initialize() argument 600 if (hasher == NULL) in hash_initialize() 601 hasher = raw_hasher; in hash_initialize() 633 table->hasher = hasher; in hash_initialize() 962 new_table->hasher = table->hasher; in hash_rehash()
|