/external/llvm/lib/Fuzzer/test/ |
SimpleHashTest.cpp | 16 uint32_t Hash = 0x12039854; 18 Hash += Data[i]; 19 Hash += (Hash << 10); 20 Hash ^= (Hash >> 6); 22 Hash += (Hash << 3); 23 Hash ^= (Hash >> 11) [all...] |
/external/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/ |
hash_copy_constructible.fail.cpp | 15 // Check that std::unordered_map fails to instantiate if the hash function is 21 struct Hash { 24 Hash () {} 26 Hash (const Hash &); // declared but not defined 31 std::unordered_map<int, int, Hash<int> > m;
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
hash_copy_constructible.fail.cpp | 15 // Check that std::unordered_multimap fails to instantiate if the hash function is 21 struct Hash { 24 Hash () {} 26 Hash (const Hash &); // declared but not defined 31 std::unordered_multimap<int, int, Hash<int> > m;
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/ |
hash_copy_constructible.fail.cpp | 12 // Check that std::unordered_multiset fails to instantiate if the hash function is 18 struct Hash { 21 Hash () {} 23 Hash (const Hash &); // declared but not defined 28 std::unordered_multiset<int, Hash<int> > m;
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/ |
hash_copy_constructible.fail.cpp | 12 // Check that std::unordered_set fails to instantiate if the hash function is 18 struct Hash { 21 Hash () {} 23 Hash (const Hash &); // declared but not defined 28 std::unordered_set<int, Hash<int> > m;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/containers/unord/unord.map/unord.map.cnstr/ |
hash_copy_constructible.fail.cpp | 15 // Check that std::unordered_map fails to instantiate if the hash function is 21 struct Hash { 24 Hash () {} 26 Hash (const Hash &); // declared but not defined 31 std::unordered_map<int, int, Hash<int> > m;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
hash_copy_constructible.fail.cpp | 15 // Check that std::unordered_multimap fails to instantiate if the hash function is 21 struct Hash { 24 Hash () {} 26 Hash (const Hash &); // declared but not defined 31 std::unordered_multimap<int, int, Hash<int> > m;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/ |
hash_copy_constructible.fail.cpp | 12 // Check that std::unordered_multiset fails to instantiate if the hash function is 18 struct Hash { 21 Hash () {} 23 Hash (const Hash &); // declared but not defined 28 std::unordered_multiset<int, Hash<int> > m;
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/containers/unord/unord.set/unord.set.cnstr/ |
hash_copy_constructible.fail.cpp | 12 // Check that std::unordered_set fails to instantiate if the hash function is 18 struct Hash { 21 Hash () {} 23 Hash (const Hash &); // declared but not defined 28 std::unordered_set<int, Hash<int> > m;
|
/hardware/interfaces/tests/hash/1.0/default/ |
Hash.cpp | 1 #include "Hash.h" 6 namespace hash { namespace in namespace:android::hardware::tests 10 // Methods from ::android::hardware::tests::hash::V1_0::IHash follow. 11 Return<void> Hash::dummy() { 15 Return<void> Hash::functions() { 22 return new Hash(); 27 } // namespace hash
|
/external/libcxx/test/support/ |
poisoned_hash_helper.hpp | 25 // Test that the specified Hash meets the requirements of an enabled hash 26 template <class Hash, class Key, class InputKey = Key> 31 return test_hash_enabled<std::hash<T>, T, InputKey>(key); 34 // Test that the specified Hash meets the requirements of a disabled hash. 35 template <class Hash, class Key> 40 return test_hash_disabled<std::hash<T>, T>(); 49 // Each header that declares the template hash provides enabled 50 // specializations of hash for nullptr t and all cv-unqualifie [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/support/ |
poisoned_hash_helper.hpp | 25 // Test that the specified Hash meets the requirements of an enabled hash 26 template <class Hash, class Key, class InputKey = Key> 31 return test_hash_enabled<std::hash<T>, T, InputKey>(key); 34 // Test that the specified Hash meets the requirements of a disabled hash. 35 template <class Hash, class Key> 40 return test_hash_disabled<std::hash<T>, T>(); 49 // Each header that declares the template hash provides enabled 50 // specializations of hash for nullptr t and all cv-unqualifie [all...] |
/external/llvm/unittests/Support/ |
raw_sha1_ostream_test.cpp | 35 auto Hash = toHex(Sha1Stream.sha1()); 37 ASSERT_EQ("2EF7BDE608CE5404E97D5F042F95F89F1C232871", Hash); 40 // Check that getting the intermediate hash in the middle of the stream does 45 auto Hash = toHex(Sha1Stream.sha1()); 47 ASSERT_EQ("F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0", Hash); 49 Hash = toHex(Sha1Stream.sha1()); 51 // Compute the non-split hash separately as a reference. 56 ASSERT_EQ(NonSplitHash, Hash); 62 auto Hash = toHex(Sha1Stream.sha1()); 64 ASSERT_EQ("F7FF9E8B7BB2E09B70935A5D785E0CC5D9D0ABF0", Hash); [all...] |
MD5Test.cpp | 24 MD5 Hash; 25 Hash.update(Input); 27 Hash.final(MD5Res); 34 MD5 Hash; 35 Hash.update(Input); 37 Hash.final(MD5Res);
|
/external/compiler-rt/lib/ubsan/ |
ubsan_handlers_cxx.h | 33 DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash); 36 DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash);
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
hash_util.h | 23 return seed ^ (std::hash<T>()(value) + (seed << 6) + (seed >> 2)); 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) [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/darwin-x86/clang-4393122/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/darwin-x86/clang-4479392/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |
/prebuilts/clang/host/linux-x86/clang-4393122/include/llvm/ADT/ |
CachedHashString.h | 11 // and not-owning string types that store their hash in addition to their string 29 /// A container which contains a StringRef plus a precomputed hash. 33 uint32_t Hash; 40 CachedHashStringRef(StringRef S, uint32_t Hash) 41 : P(S.data()), Size(S.size()), Hash(Hash) { 47 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashStringRef 58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!"); 59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!") 138 uint32_t hash() const { return Hash; } function in class:llvm::CachedHashString [all...] |