Home
last modified time | relevance | path

Searched refs:Hash (Results 1 – 25 of 625) sorted by relevance

12345678910>>...25

/external/libcxx/test/support/
Dpoisoned_hash_helper.hpp26 template <class Hash, class Key, class InputKey = Key>
35 template <class Hash, class Key>
131 template <class Hash, class Key, class InputKey>
135 static_assert(std::is_destructible<Hash>::value, ""); in test_hash_enabled()
137 static_assert(std::is_default_constructible<Hash>::value, ""); in test_hash_enabled()
138 static_assert(std::is_copy_constructible<Hash>::value, ""); in test_hash_enabled()
139 static_assert(std::is_move_constructible<Hash>::value, ""); in test_hash_enabled()
140 static_assert(std::is_copy_assignable<Hash>::value, ""); in test_hash_enabled()
141 static_assert(std::is_move_assignable<Hash>::value, ""); in test_hash_enabled()
144 static_assert(std::is_swappable<Hash>::value, ""); in test_hash_enabled()
[all …]
/external/llvm/lib/Fuzzer/test/
DSimpleHashTest.cpp16 uint32_t Hash = 0x12039854; in simple_hash() local
18 Hash += Data[i]; in simple_hash()
19 Hash += (Hash << 10); in simple_hash()
20 Hash ^= (Hash >> 6); in simple_hash()
22 Hash += (Hash << 3); in simple_hash()
23 Hash ^= (Hash >> 11); in simple_hash()
24 Hash += (Hash << 15); in simple_hash()
25 return Hash; in simple_hash()
32 uint32_t Hash = simple_hash(&Data[0], Size - 4); in LLVMFuzzerTestOneInput() local
34 if (Hash != Want) in LLVMFuzzerTestOneInput()
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DHash.cpp57 uint32_t Hash = 0xb170a1bf; in hashStringV2() local
65 Hash += Item; in hashStringV2()
66 Hash += (Hash << 10); in hashStringV2()
67 Hash ^= (Hash >> 6); in hashStringV2()
71 Hash += Item; in hashStringV2()
72 Hash += (Hash << 10); in hashStringV2()
73 Hash ^= (Hash >> 6); in hashStringV2()
76 return Hash * 1664525L + 1013904223L; in hashStringV2()
127 uint32_t Hash = 0; in hashBufferV8() local
129 Hash = (Hash >> 8) ^ V8HashTable[(Hash & 0xff) ^ Byte]; in hashBufferV8()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_non_member.pass.cpp31 typedef test_hash<std::hash<int> > Hash; in main() typedef
34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
42 assert(c1.hash_function() == Hash(2)); in main()
51 assert(c2.hash_function() == Hash(1)); in main()
59 typedef test_hash<std::hash<int> > Hash; in main() typedef
62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dswap_member.pass.cpp31 typedef test_hash<std::hash<int> > Hash; in main() typedef
34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
42 assert(c1.hash_function() == Hash(2)); in main()
51 assert(c2.hash_function() == Hash(1)); in main()
59 typedef test_hash<std::hash<int> > Hash; in main() typedef
62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_non_member.pass.cpp31 typedef test_hash<std::hash<int> > Hash; in main() typedef
34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
42 assert(c1.hash_function() == Hash(2)); in main()
51 assert(c2.hash_function() == Hash(1)); in main()
59 typedef test_hash<std::hash<int> > Hash; in main() typedef
62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dswap_member.pass.cpp31 typedef test_hash<std::hash<int> > Hash; in main() typedef
34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
42 assert(c1.hash_function() == Hash(2)); in main()
51 assert(c2.hash_function() == Hash(1)); in main()
59 typedef test_hash<std::hash<int> > Hash; in main() typedef
62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/
Dswap_member.pass.cpp32 typedef test_hash<std::hash<int> > Hash; in main() typedef
35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
43 assert(c1.hash_function() == Hash(2)); in main()
52 assert(c2.hash_function() == Hash(1)); in main()
60 typedef test_hash<std::hash<int> > Hash; in main() typedef
63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_non_member.pass.cpp32 typedef test_hash<std::hash<int> > Hash; in main() typedef
35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
43 assert(c1.hash_function() == Hash(2)); in main()
52 assert(c2.hash_function() == Hash(1)); in main()
60 typedef test_hash<std::hash<int> > Hash; in main() typedef
63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_non_member.pass.cpp32 typedef test_hash<std::hash<int> > Hash; in main() typedef
35 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
43 assert(c1.hash_function() == Hash(2)); in main()
52 assert(c2.hash_function() == Hash(1)); in main()
60 typedef test_hash<std::hash<int> > Hash; in main() typedef
63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DHash.cpp58 uint32_t Hash = 0xb170a1bf; in hashStringV2() local
66 Hash += Item; in hashStringV2()
67 Hash += (Hash << 10); in hashStringV2()
68 Hash ^= (Hash >> 6); in hashStringV2()
72 Hash += Item; in hashStringV2()
73 Hash += (Hash << 10); in hashStringV2()
74 Hash ^= (Hash >> 6); in hashStringV2()
77 return Hash * 1664525U + 1013904223U; in hashStringV2()
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-profdata/Inputs/
Dmultiple-profdata-merge.proftext4 # Func Hash:
15 # Func Hash:
28 # Func Hash:
38 # Func Hash:
51 # Func Hash:
59 # Func Hash:
67 # Func Hash:
75 # Func Hash:
83 # Func Hash:
91 # Func Hash:
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DCachedHashString.h33 uint32_t Hash; variable
40 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() argument
41 : P(S.data()), Size(S.size()), Hash(Hash) { in CachedHashStringRef()
48 uint32_t hash() const { return Hash; } in hash()
78 uint32_t Hash;
92 : P(EmptyOrTombstonePtr), Size(0), Hash(0) {
105 CachedHashString(StringRef S, uint32_t Hash)
106 : P(new char[S.size()]), Size(S.size()), Hash(Hash) {
113 : Size(Other.Size), Hash(Other.Hash) {
128 : P(Other.P), Size(Other.Size), Hash(Other.Hash) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
Draw_sha1_ostream_test.cpp35 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local
37 ASSERT_EQ("2EF7BDE608CE5404E97D5F042F95F89F1C232871", Hash); in TEST()
43 std::string Hash = toHex({(const char *)Vec.data(), 20}); in TEST() local
44 ASSERT_EQ("2EF7BDE608CE5404E97D5F042F95F89F1C232871", Hash); in TEST()
52 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local
54 ASSERT_EQ("F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0", Hash); in TEST()
56 Hash = toHex(Sha1Stream.sha1()); in TEST()
63 ASSERT_EQ(NonSplitHash, Hash); in TEST()
69 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local
71 ASSERT_EQ("F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0", Hash); in TEST()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DFoldingSet.cpp33 unsigned Hash = static_cast<unsigned>(Size); in ComputeHash() local
36 Hash += Data & 0xFFFF; in ComputeHash()
37 unsigned Tmp = ((Data >> 16) << 11) ^ Hash; in ComputeHash()
38 Hash = (Hash << 16) ^ Tmp; in ComputeHash()
39 Hash += Hash >> 11; in ComputeHash()
43 Hash ^= Hash << 3; in ComputeHash()
44 Hash += Hash >> 5; in ComputeHash()
45 Hash ^= Hash << 4; in ComputeHash()
46 Hash += Hash >> 17; in ComputeHash()
47 Hash ^= Hash << 25; in ComputeHash()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dswap_member.pass.cpp34 typedef test_hash<std::hash<int> > Hash; in main() typedef
37 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
38 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
39 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
45 assert(c1.hash_function() == Hash(2)); in main()
54 assert(c2.hash_function() == Hash(1)); in main()
62 typedef test_hash<std::hash<int> > Hash; in main() typedef
65 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
78 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
79 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
[all …]
/external/llvm/unittests/Support/
Draw_sha1_ostream_test.cpp35 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local
37 ASSERT_EQ("2EF7BDE608CE5404E97D5F042F95F89F1C232871", Hash); in TEST()
45 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local
47 ASSERT_EQ("F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0", Hash); in TEST()
49 Hash = toHex(Sha1Stream.sha1()); in TEST()
56 ASSERT_EQ(NonSplitHash, Hash); in TEST()
62 auto Hash = toHex(Sha1Stream.sha1()); in TEST() local
64 ASSERT_EQ("F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0", Hash); in TEST()
68 Hash = toHex(Sha1Stream.sha1()); in TEST()
70 ASSERT_EQ("7447F2A5A42185C8CF91E632789C431830B59067", Hash); in TEST()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dhash_util.h29 static char Test(decltype(&U::Hash));
42 size_t Hash(size_t seed, const T& value);
46 static size_t Hash(size_t seed, const T& value) { return value.Hash(seed); }
51 static size_t Hash(size_t seed, const T& value) {
58 static size_t Hash(size_t seed, const std::vector<T>& value) {
68 static size_t Hash(size_t seed, const base::Optional<std::vector<T>>& value) {
72 return Hash(seed, *value);
77 size_t Hash(size_t seed, const T& value) {
78 return HashTraits<T>::Hash(seed, value);
/external/u-boot/doc/uImage.FIT/
Dhowto.txt98 Hash algo: crc32
99 Hash value: 2ae2bb40
100 Hash algo: sha1
101 Hash value: 3c200f34e2c226ddc789240cca0c59fc54a67cf4
143 Hash algo: crc32
144 Hash value: 2ae2bb40
145 Hash algo: sha1
146 Hash value: 3c200f34e2c226ddc789240cca0c59fc54a67cf4
165 Hash algo: crc32
166 Hash value: 2ae2bb40
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-cov/Inputs/
Dname_whitelist.proftext2 # Func Hash:
10 # Func Hash:
18 # Func Hash:
26 # Func Hash:
34 # Func Hash:
42 # Func Hash:
50 # Func Hash:
/external/libchrome/mojo/public/cpp/bindings/tests/
Dwtf_hash_unittest.cc20 ASSERT_EQ(::mojo::internal::Hash( in TEST_F()
23 ::mojo::internal::Hash( in TEST_F()
32 ASSERT_EQ(WTF::DefaultHash<blink::TopLevelEnum>::Hash().GetHash( in TEST_F()
34 WTF::DefaultHash<blink::TopLevelEnum>::Hash().GetHash( in TEST_F()
38 ASSERT_EQ(WTF::DefaultHash<blink::TestWTFStruct::NestedEnum>::Hash().GetHash( in TEST_F()
40 WTF::DefaultHash<blink::TestWTFStruct::NestedEnum>::Hash().GetHash( in TEST_F()
44 ASSERT_EQ(WTF::DefaultHash<blink::TestWTF::NestedEnum>::Hash().GetHash( in TEST_F()
46 WTF::DefaultHash<blink::TestWTF::NestedEnum>::Hash().GetHash( in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/CodeView/
DTypeHashing.h34 hash_code Hash; member
84 ::memcpy(Hash.data(), H.data(), 8); in GloballyHashedType()
86 std::array<uint8_t, 8> Hash; member
158 return Val.Hash;
163 if (LHS.Hash != RHS.Hash)
178 return *reinterpret_cast<const unsigned *>(Val.Hash.data());
183 return LHS.Hash == RHS.Hash;
191 write_hex(Stream, V.Hash, HexPrintStyle::Upper, 8);
199 for (uint8_t B : V.Hash) {
/external/libchrome/base/containers/
Dhash_tables.h46 class Hash = BASE_HASH_NAMESPACE::hash<Key>,
49 using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>;
54 class Hash = BASE_HASH_NAMESPACE::hash<Key>,
57 using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>;
61 class Hash = BASE_HASH_NAMESPACE::hash<Key>,
64 using hash_multiset = std::unordered_multiset<Key, Hash, Pred, Alloc>;
68 class Hash = BASE_HASH_NAMESPACE::hash<Key>,
71 using hash_set = std::unordered_set<Key, Hash, Pred, Alloc>;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/
DCodeViewYAMLTypeHashing.cpp38 ScalarTraits<BinaryRef>::output(GH.Hash, Ctx, OS); in output()
43 return ScalarTraits<BinaryRef>::input(Scalar, Ctx, GH.Hash); in input()
78 SmallString<8> Hash; in toDebugH() local
80 Hash.clear(); in toDebugH()
81 raw_svector_ostream OS(Hash); in toDebugH()
82 H.Hash.writeAsBinary(OS); in toDebugH()
83 assert((Hash.size() == 8) && "Invalid hash size!"); in toDebugH()
84 cantFail(Writer.writeFixedString(Hash)); in toDebugH()
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTStringHash.cpp111 return (m_Hash == _Str.Hash()); in operator ==()
120 bool CPVRTStringHash::operator==(const CPVRTHash& Hash) const in operator ==()
122 return (m_Hash == Hash); in operator ==()
159 return (m_Hash != _Str.Hash()); in operator !=()
168 bool CPVRTStringHash::operator!=(const CPVRTHash& Hash) const in operator !=()
170 return (m_Hash != Hash); in operator !=()
188 const CPVRTHash& CPVRTStringHash::Hash() const in Hash() function in CPVRTStringHash

12345678910>>...25