Home
last modified time | relevance | path

Searched refs:hasher (Results 1 – 25 of 106) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/wtf/
DStringHasherTest.cpp57 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 …]
DStringHasher.h161 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/
DAbstractCompositeHashFunction.java37 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.h59 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.h65 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.h51 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.h57 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/
Dbackward_references.cc33 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/
Drolling_hash_test.cc106 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()
Dvcdiffengine.cc167 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/
Dhash_set29 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 …]
Dhash_map29 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/
Dunordered_set31 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 …]
Dunordered_map31 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/
DFontFaceCreationParams.h101 StringHasher hasher; in hash() local
106hasher.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()
108hasher.addCharacters(reinterpret_cast<const LChar*>(&m_fontconfigInterfaceId), sizeof(m_fontconfig… in hash()
109 return hasher.hash(); in hash()
DWidthCache.h71 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/
DMurmur3Hash32Test.java33 Hasher hasher = murmur3_32(seed).newHasher(); in testParanoid()
34 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid()
35 return hasher.hash().asBytes(); in testParanoid()
DMurmur3Hash128Test.java62 Hasher hasher = murmur3_128(seed).newHasher(); in testParanoid()
63 Funnels.byteArrayFunnel().funnel(input, hasher); in testParanoid()
64 return hasher.hash().asBytes(); in testParanoid()
DHashFunctionsTest.java31 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/
Dbuild_jsdoc_validator_jar.py40 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/
Djtl_compiler.cc98 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/
Dmake_names.py32 import hasher
61 'hash': hasher.hash,
Dmake_element_type_helpers.py9 import hasher
45 'hash': hasher.hash,
Dmake_qualified_names.py32 import hasher
57 'hash': hasher.hash,
/external/bison/lib/
Dhash.c71 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()

12345