Home
last modified time | relevance | path

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

123

/external/chromium_org/third_party/WebKit/Source/wtf/
DStringHasherTest.cpp57 StringHasher hasher; in TEST() local
60 ASSERT_EQ(emptyStringHash, hasher.hash()); in TEST()
61 ASSERT_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 ASSERT_EQ(singleNullCharacterHash, hasher.hash()); in TEST()
72 ASSERT_EQ(singleNullCharacterHash & 0xFFFFFF, hasher.hashWithTop8BitsMasked()); in TEST()
75 hasher = StringHasher(); in TEST()
76 hasher.addCharacter(testAUChars[0]); in TEST()
[all …]
DStringHasher.h194 StringHasher hasher; in computeHashAndMaskTop8Bits() local
195 hasher.addCharactersAssumingAligned<T, Converter>(data, length); in computeHashAndMaskTop8Bits()
196 return hasher.hashWithTop8BitsMasked(); in computeHashAndMaskTop8Bits()
201 StringHasher hasher; in computeHashAndMaskTop8Bits() local
202 hasher.addCharactersAssumingAligned<T, Converter>(data); in computeHashAndMaskTop8Bits()
203 return hasher.hashWithTop8BitsMasked(); in computeHashAndMaskTop8Bits()
218 StringHasher hasher; in computeHash() local
219 hasher.addCharactersAssumingAligned<T, Converter>(data, length); in computeHash()
220 return hasher.hash(); in computeHash()
225 StringHasher hasher; in computeHash() local
[all …]
/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/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/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/chromium/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.cc170 RollingHash<BlockHash::kBlockSize> hasher; in EncodeInternal() local
191 uint32_t hash_value = hasher.Hash(candidate_pos); in EncodeInternal()
209 hash_value = hasher.Hash(candidate_pos); in EncodeInternal()
226 hash_value = hasher.UpdateHash(hash_value, in EncodeInternal()
/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/platform/fonts/
DWidthCache.h62 StringHasher hasher; in SmallStringKey() local
71 hasher.addCharactersAssumingAligned(characters[i], characters[i + 1]); in SmallStringKey()
77 hasher.addCharacter(characters[i]); in SmallStringKey()
80 m_hash = hasher.hash(); in SmallStringKey()
/external/chromium_org/chrome/tools/profile_reset/
Djtl_compiler.cc97 const jtl::Hasher& hasher, in TranscodeInstruction() argument
118 target->WriteHash(hasher.GetHash(value)); in TranscodeInstruction()
128 target->WriteHash(hasher.GetHash(value)); in TranscodeInstruction()
207 jtl::Hasher hasher(hash_seed); in Compile() local
239 operation_name, arguments, ends_sentence, hasher, &bytecode_writer); in Compile()
/external/chromium_org/third_party/WebKit/Source/build/scripts/
Dmake_names.py32 import hasher
56 '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()
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/
Ddata.py238 def add_to_hash(self, filename, hasher): argument
240 hasher.update(self.executed_lines(filename))
241 hasher.update(self.executed_arcs(filename))
/external/chromium_org/chrome/browser/component_updater/
Dcomponent_patcher_operation.cc100 const scoped_ptr<SecureHash> hasher(SecureHash::Create(SecureHash::SHA256)); in CheckHash() local
101 hasher->Update(output_file_mmapped.data(), output_file_mmapped.length()); in CheckHash()
102 hasher->Finish(actual_hash, sizeof(actual_hash)); in CheckHash()
/external/chromium_org/third_party/WebKit/Source/core/
Dmake_core_derived_sources.target.darwin-arm.mk63 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
74 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
85 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
97 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
108 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
123 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
138 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
150 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
161 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
172 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
[all …]
Dmake_core_derived_sources.target.linux-mips.mk63 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
74 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
85 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
97 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
108 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
123 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
138 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
150 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
161 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
172 …upsafe/__init__.py $(LOCAL_PATH)/third_party/WebKit/Source/build/scripts/hasher.py $(LOCAL_PATH)/t…
[all …]

123