/external/libcxx/test/support/ |
D | poisoned_hash_helper.hpp | 26 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/ |
D | SimpleHashTest.cpp | 16 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/ |
D | Hash.cpp | 57 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.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 31 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/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 31 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/ |
D | swap_member.pass.cpp | 31 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/ |
D | swap_member.pass.cpp | 31 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/ |
D | swap_member.pass.cpp | 32 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/ |
D | swap_non_member.pass.cpp | 32 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/ |
D | swap_member.pass.cpp | 33 typedef test_hash<std::hash<int> > Hash; in main() typedef 36 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 37 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 38 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main() 44 assert(c1.hash_function() == Hash(2)); in main() 53 assert(c2.hash_function() == Hash(1)); in main() 61 typedef test_hash<std::hash<int> > Hash; in main() typedef 64 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main() 77 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main() 78 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/ |
D | swap_non_member.pass.cpp | 32 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/lib/Support/ |
D | FoldingSet.cpp | 33 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/llvm/unittests/Support/ |
D | raw_sha1_ostream_test.cpp | 35 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()
|
D | MD5Test.cpp | 24 MD5 Hash; in TestMD5Sum() local 25 Hash.update(Input); in TestMD5Sum() 27 Hash.final(MD5Res); in TestMD5Sum() 34 MD5 Hash; in TestMD5Sum() local 35 Hash.update(Input); in TestMD5Sum() 37 Hash.final(MD5Res); in TestMD5Sum()
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | hash_util.h | 29 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/libchrome/base/containers/ |
D | hash_tables.h | 46 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/PowerVR_SDK/Tools/ |
D | PVRTStringHash.cpp | 111 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
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/ |
D | hash_copy_constructible.fail.cpp | 21 struct Hash { struct 24 Hash () {} in Hash() argument 26 Hash (const Hash &); // declared but not defined 31 std::unordered_map<int, int, Hash<int> > m; in main()
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/ |
D | hash_copy_constructible.fail.cpp | 18 struct Hash { struct 21 Hash () {} in Hash() function 23 Hash (const Hash &); // declared but not defined 28 std::unordered_multiset<int, Hash<int> > m; in main()
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
D | hash_copy_constructible.fail.cpp | 21 struct Hash { struct 24 Hash () {} in Hash() function 26 Hash (const Hash &); // declared but not defined 31 std::unordered_multimap<int, int, Hash<int> > m; in main()
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/ |
D | hash_copy_constructible.fail.cpp | 18 struct Hash { struct 21 Hash () {} in Hash() argument 23 Hash (const Hash &); // declared but not defined 28 std::unordered_set<int, Hash<int> > m; in main()
|
/external/skqp/tests/ |
D | DynamicHashTest.cpp | 18 static uint32_t Hash(const int& key) { return key; } in Hash() function 22 class Hash : public SkTDynamicHash<Entry, int> { class 24 Hash() : INHERITED() {} in Hash() function in __anondef8c9d80111::Hash 45 Hash hash; in DEF_TEST() 67 Hash hash; in DEF_TEST() 79 Hash hash; in DEF_TEST() 114 Hash hash; in DEF_TEST() 140 Hash hash; in TestIter() 188 TestIter<Hash::Iter>(reporter); in DEF_TEST() 189 TestIter<Hash::ConstIter>(reporter); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | DynamicHashTest.cpp | 18 static uint32_t Hash(const int& key) { return key; } in Hash() function 22 class Hash : public SkTDynamicHash<Entry, int> { class 24 Hash() : INHERITED() {} in Hash() function in __anona60072010111::Hash 45 Hash hash; in DEF_TEST() 67 Hash hash; in DEF_TEST() 79 Hash hash; in DEF_TEST() 114 Hash hash; in DEF_TEST() 140 Hash hash; in TestIter() 188 TestIter<Hash::Iter>(reporter); in DEF_TEST() 189 TestIter<Hash::ConstIter>(reporter); in DEF_TEST() [all …]
|
/external/v8/src/compiler/ |
D | node-cache.cc | 24 template <typename Key, typename Hash, typename Pred> 25 struct NodeCache<Key, Hash, Pred>::Entry { 31 template <typename Key, typename Hash, typename Pred> 32 bool NodeCache<Key, Hash, Pred>::Resize(Zone* zone) { in Resize() 64 template <typename Key, typename Hash, typename Pred> 65 Node** NodeCache<Key, Hash, Pred>::Find(Zone* zone, Key key) { in Find() 102 template <typename Key, typename Hash, typename Pred> 103 void NodeCache<Key, Hash, Pred>::GetCachedNodes(ZoneVector<Node*>* nodes) { in GetCachedNodes()
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_type_hash_itanium.cc | 209 bool __ubsan::checkDynamicType(void *Object, void *Type, HashValue Hash) { in checkDynamicType() argument 214 HashValue *Bucket = getTypeCacheHashTableBucket(Hash); in checkDynamicType() 215 if (*Bucket == Hash) { in checkDynamicType() 216 __ubsan_vptr_type_cache[Hash % VptrTypeCacheSize] = Hash; in checkDynamicType() 240 __ubsan_vptr_type_cache[Hash % VptrTypeCacheSize] = Hash; in checkDynamicType() 241 *Bucket = Hash; in checkDynamicType()
|