/third_party/skia/third_party/externals/tint/src/utils/ |
D | hash_test.cc | 26 EXPECT_EQ(Hash(123), Hash(123)); in TEST() 27 EXPECT_NE(Hash(123), Hash(321)); in TEST() 28 EXPECT_EQ(Hash(123, 456), Hash(123, 456)); in TEST() 29 EXPECT_NE(Hash(123, 456), Hash(456, 123)); in TEST() 30 EXPECT_NE(Hash(123, 456), Hash(123)); in TEST() 31 EXPECT_EQ(Hash(123, 456, false), Hash(123, 456, false)); in TEST() 32 EXPECT_NE(Hash(123, 456, false), Hash(123, 456)); in TEST() 33 EXPECT_EQ(Hash(std::string("hello")), Hash(std::string("hello"))); in TEST() 34 EXPECT_NE(Hash(std::string("hello")), Hash(std::string("world"))); in TEST() 38 EXPECT_EQ(Hash(std::vector<int>({})), Hash(std::vector<int>({}))); in TEST() [all …]
|
/third_party/json/test/thirdparty/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 …]
|
/third_party/boost/boost/pending/ |
D | container_traits.hpp | 316 template < class Key, class Eq, class Hash, class Alloc > 317 struct container_traits< boost::unordered_set< Key, Eq, Hash, Alloc > > 322 template < class Key, class T, class Eq, class Hash, class Alloc > 323 struct container_traits< boost::unordered_map< Key, T, Eq, Hash, Alloc > > 328 template < class Key, class Eq, class Hash, class Alloc > 329 struct container_traits< boost::unordered_multiset< Key, Eq, Hash, Alloc > > 334 template < class Key, class T, class Eq, class Hash, class Alloc > 336 boost::unordered_multimap< Key, T, Eq, Hash, Alloc > > 342 template < class Key, class Eq, class Hash, class Alloc > 344 const boost::unordered_set< Key, Eq, Hash, Alloc >&) in container_category() argument [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
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 * 1664525U + 1013904223U; in hashStringV2()
|
/third_party/node/lib/internal/crypto/ |
D | hash.js | 9 Hash: _Hash, 37 function Hash(algorithm, options) { class 38 if (!(this instanceof Hash)) 39 return new Hash(algorithm, options); 53 ObjectSetPrototypeOf(Hash.prototype, LazyTransform.prototype); 54 ObjectSetPrototypeOf(Hash, LazyTransform); 56 Hash.prototype.copy = function copy(options) { 61 return new Hash(this[kHandle], options); 64 Hash.prototype._transform = function _transform(chunk, encoding, callback) { 69 Hash.prototype._flush = function _flush(callback) { [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | CachedHashString.h | 32 uint32_t Hash; variable 39 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() argument 40 : P(S.data()), Size(S.size()), Hash(Hash) { in CachedHashStringRef() 47 uint32_t hash() const { return Hash; } in hash() 77 uint32_t Hash; 91 : P(EmptyOrTombstonePtr), Size(0), Hash(0) { 104 CachedHashString(StringRef S, uint32_t Hash) 105 : P(new char[S.size()]), Size(S.size()), Hash(Hash) { 112 : Size(Other.Size), Hash(Other.Hash) { 127 : P(Other.P), Size(Other.Size), Hash(Other.Hash) { [all …]
|
/third_party/boost/libs/hana/include/boost/hana/detail/ |
D | hash_table.hpp | 31 template <typename Hash, std::size_t ...i> 42 template <typename Hash, std::size_t ...i> 43 std::index_sequence<i...> find_indices_impl(bucket<Hash, i...> const&); 45 template <typename Hash> 50 using Hash = typename decltype(hana::hash(std::declval<Key>()))::type; typedef 51 using type = decltype(detail::find_indices_impl<Hash>(std::declval<Map>())); 98 template <typename Bucket, typename Hash, std::size_t Index> 103 template <std::size_t ...i, typename Hash, std::size_t Index> 104 struct update_bucket<bucket<Hash, i...>, Hash, Index> { 105 using type = bucket<Hash, i..., Index>; [all …]
|
/third_party/boost/boost/hana/detail/ |
D | hash_table.hpp | 31 template <typename Hash, std::size_t ...i> 42 template <typename Hash, std::size_t ...i> 43 std::index_sequence<i...> find_indices_impl(bucket<Hash, i...> const&); 45 template <typename Hash> 50 using Hash = typename decltype(hana::hash(std::declval<Key>()))::type; typedef 51 using type = decltype(detail::find_indices_impl<Hash>(std::declval<Map>())); 98 template <typename Bucket, typename Hash, std::size_t Index> 103 template <std::size_t ...i, typename Hash, std::size_t Index> 104 struct update_bucket<bucket<Hash, i...>, Hash, Index> { 105 using type = bucket<Hash, i..., Index>; [all …]
|
/third_party/boost/boost/multi_index/ |
D | hashed_index_fwd.hpp | 25 typename KeyFromValue,typename Hash,typename Pred, 31 typename KeyFromValue,typename Hash,typename Pred, 35 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& x, 36 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& y); 39 typename KeyFromValue,typename Hash,typename Pred, 43 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& x, 44 const hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& y); 47 typename KeyFromValue,typename Hash,typename Pred, 51 hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& x, 52 hashed_index<KeyFromValue,Hash,Pred,SuperMeta,TagList,Category>& y);
|
/third_party/typescript/tests/baselines/reference/ |
D | declarationsForIndirectTypeAliasReference.symbols | 3 Hash, 4 >Hash : Symbol(Hash, Decl(b.ts, 0, 8)) 12 interface Hash<T> { 13 >Hash : Symbol(Hash, Decl(b.ts, 3, 2)) 21 type StringHash = Hash<string>; 23 >Hash : Symbol(Hash, Decl(b.ts, 3, 2)) 25 interface StringHash2 extends Hash<string> {} 27 >Hash : Symbol(Hash, Decl(b.ts, 3, 2))
|
D | declarationsForIndirectTypeAliasReference.js | 5 Hash, 9 interface Hash<T> { 13 type StringHash = Hash<string>; 15 interface StringHash2 extends Hash<string> {} 57 export { Hash, StringHash, StringHash2 }; 58 interface Hash<T> { 61 declare type StringHash = Hash<string>; 62 interface StringHash2 extends Hash<string> {
|
/third_party/boost/boost/phoenix/stl/algorithm/detail/ |
D | is_unordered_set_or_map.hpp | 57 , class Hash 61 struct is_std_unordered_set< std::unordered_set<Kty,Hash,Cmp,Alloc> > 67 , class Hash 71 struct is_std_unordered_multiset< std::unordered_multiset<Kty,Hash,Cmp,Alloc> > 78 , class Hash 82 struct is_std_unordered_map< std::unordered_map<Kty,Ty,Hash,Cmp,Alloc> > 89 , class Hash 93 struct is_std_unordered_multimap< std::unordered_multimap<Kty,Ty,Hash,Cmp,Alloc> >
|
/third_party/boost/libs/variant2/test/ |
D | variant_hash.cpp | 18 template<template<class...> class Hash, class T1, class T2, class T3> void test() in test() 21 std::size_t h1 = Hash<decltype(v1)>()( v1 ); in test() 24 std::size_t h2 = Hash<decltype(v2)>()( v2 ); in test() 27 std::size_t h3 = Hash<decltype(v3)>()( v3 ); in test() 34 template<template<class...> class Hash, class T> void test2() in test2() 37 std::size_t h1 = Hash<decltype(v1)>()( v1 ); in test2() 40 std::size_t h2 = Hash<decltype(v2)>()( v2 ); in test2() 43 std::size_t h3 = Hash<decltype(v3)>()( v3 ); in test2()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/ |
D | TypeHashing.h | 33 hash_code Hash; member 83 ::memcpy(Hash.data(), H.data(), 8); in GloballyHashedType() 85 std::array<uint8_t, 8> Hash; member 87 bool empty() const { return *(const uint64_t*)Hash.data() == 0; } in empty() 184 return Val.Hash; 189 if (LHS.Hash != RHS.Hash) 204 return *reinterpret_cast<const unsigned *>(Val.Hash.data()); 209 return LHS.Hash == RHS.Hash; 217 write_hex(Stream, V.Hash, HexPrintStyle::Upper, 8); 225 for (uint8_t B : V.Hash) {
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | CodeViewYAMLTypeHashing.cpp | 37 ScalarTraits<BinaryRef>::output(GH.Hash, Ctx, OS); in output() 42 return ScalarTraits<BinaryRef>::input(Scalar, Ctx, GH.Hash); in input() 77 SmallString<8> Hash; in toDebugH() local 79 Hash.clear(); in toDebugH() 80 raw_svector_ostream OS(Hash); in toDebugH() 81 H.Hash.writeAsBinary(OS); in toDebugH() 82 assert((Hash.size() == 8) && "Invalid hash size!"); in toDebugH() 83 cantFail(Writer.writeFixedString(Hash)); in toDebugH()
|
/third_party/openssl/crypto/rsa/ |
D | rsa_pss.c | 26 const EVP_MD *Hash, const unsigned char *EM, in RSA_verify_PKCS1_PSS() argument 29 return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen); in RSA_verify_PKCS1_PSS() 33 const EVP_MD *Hash, const EVP_MD *mgf1Hash, in RSA_verify_PKCS1_PSS_mgf1() argument 48 mgf1Hash = Hash; in RSA_verify_PKCS1_PSS_mgf1() 50 hLen = EVP_MD_size(Hash); in RSA_verify_PKCS1_PSS_mgf1() 113 if (!EVP_DigestInit_ex(ctx, Hash, NULL) in RSA_verify_PKCS1_PSS_mgf1() 140 const EVP_MD *Hash, int sLen) in RSA_padding_add_PKCS1_PSS() argument 142 return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen); in RSA_padding_add_PKCS1_PSS() 147 const EVP_MD *Hash, const EVP_MD *mgf1Hash, in RSA_padding_add_PKCS1_PSS_mgf1() argument 157 mgf1Hash = Hash; in RSA_padding_add_PKCS1_PSS_mgf1() [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/git/ |
D | git.go | 47 type Hash [20]byte type 49 func (h Hash) String() string { return hex.EncodeToString(h[:]) } 52 func ParseHash(s string) Hash { 54 h := Hash{} 136 func CheckoutRemoteCommit(path, url string, commit Hash) error { argument 157 func CheckoutCommit(path string, commit Hash) error { argument 167 func FetchRefHash(ref, url string) (Hash, error) { 170 return Hash{}, err 176 Hash Hash member 202 …Exec(gitTimeout, exe, "", nil, "log", "--pretty=format:"+prettyFormat, fmt.Sprintf("%v^", cl.Hash)) [all …]
|
/third_party/boost/boost/ptr_container/ |
D | ptr_unordered_set.hpp | 35 class Hash = boost::hash<Key>, 43 void_ptr_indirect_fun<Hash,Key>, 49 void_ptr_indirect_fun<Hash,Key>, 54 typedef ptr_unordered_set<Key,Hash,Pred,CloneAllocator,Allocator> this_type; 95 const Hash& comp, in ptr_unordered_set() 108 const Hash& comp, in ptr_unordered_set() 127 class Hash = boost::hash<Key>, 134 boost::unordered_multiset<void*,void_ptr_indirect_fun<Hash,Key>, 139 boost::unordered_multiset<void*,void_ptr_indirect_fun<Hash,Key>, 143 typedef ptr_unordered_multiset<Key,Hash,Pred,CloneAllocator,Allocator> this_type; [all …]
|
D | ptr_unordered_map.hpp | 35 class Hash = boost::hash<Key>, 43 typename ptr_container_detail::void_ptr<T>::type,Hash,Pred,Allocator>, 47 typename ptr_container_detail::void_ptr<T>::type,Hash,Pred,Allocator>, 51 typedef ptr_unordered_map<Key,T,Hash,Pred,CloneAllocator,Allocator> this_type; 92 const Hash& comp, in ptr_unordered_map() 105 const Hash& comp, in ptr_unordered_map() 132 class Hash = boost::hash<Key>, 138 public ptr_multimap_adapter<T,boost::unordered_multimap<Key,void*,Hash,Pred,Allocator>, 141 typedef ptr_multimap_adapter<T,boost::unordered_multimap<Key,void*,Hash,Pred,Allocator>, 145 typedef ptr_unordered_multimap<Key,T,Hash,Pred,CloneAllocator,Allocator> this_type; [all …]
|
/third_party/abseil-cpp/absl/hash/ |
D | hash_test.cc | 49 using absl::Hash; 65 using is_hashable = std::is_default_constructible<absl::Hash<T>>; 80 EXPECT_EQ(absl::Hash<TypeParam>{}(n), in TYPED_TEST_P() 81 absl::Hash<std::tuple<TypeParam>>{}(std::tuple<TypeParam>(n))); in TYPED_TEST_P() 157 size_t hash = absl::Hash<void*>()(data.get() + i * align); in TEST() 489 absl::Hash<PiecewiseHashTester> hash; in TEST() 503 absl::Hash<DummyFooBar>()(DummyFooBar{})); in TEST() 606 struct IsHashCallable<T, absl::void_t<decltype(std::declval<absl::Hash<T>>()( 618 EXPECT_TRUE(std::is_default_constructible<absl::Hash<int>>::value); in TEST() 619 EXPECT_TRUE(std::is_copy_constructible<absl::Hash<int>>::value); in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/ |
D | hash_test.cc | 49 using absl::Hash; 65 using is_hashable = std::is_default_constructible<absl::Hash<T>>; 80 EXPECT_EQ(absl::Hash<TypeParam>{}(n), in TYPED_TEST_P() 81 absl::Hash<std::tuple<TypeParam>>{}(std::tuple<TypeParam>(n))); in TYPED_TEST_P() 157 size_t hash = absl::Hash<void*>()(data.get() + i * align); in TEST() 489 absl::Hash<PiecewiseHashTester> hash; in TEST() 503 absl::Hash<DummyFooBar>()(DummyFooBar{})); in TEST() 606 struct IsHashCallable<T, absl::void_t<decltype(std::declval<absl::Hash<T>>()( 618 EXPECT_TRUE(std::is_default_constructible<absl::Hash<int>>::value); in TEST() 619 EXPECT_TRUE(std::is_copy_constructible<absl::Hash<int>>::value); in TEST() [all …]
|
/third_party/flutter/skia/tests/ |
D | DynamicHashTest.cpp | 21 static uint32_t Hash(const int& key) { return key; } in Hash() function 25 class Hash : public SkTDynamicHash<Entry, int> { class 27 Hash() : INHERITED() {} in Hash() function in __anon1ccea3ea0111::Hash 48 Hash hash; in DEF_TEST() 76 Hash hash; in DEF_TEST() 102 Hash hash; in DEF_TEST() 114 Hash hash; in DEF_TEST() 149 Hash hash; in DEF_TEST() 175 Hash hash; in TestIter() 223 TestIter<Hash::Iter>(reporter); in DEF_TEST() [all …]
|
/third_party/abseil-cpp/absl/container/internal/ |
D | hash_function_defaults.h | 66 using Hash = absl::Hash<T>; member 74 return absl::Hash<absl::string_view>{}(v); in operator() 77 return absl::Hash<absl::Cord>{}(v); in operator() 83 using Hash = StringHash; member 111 struct Hash { 115 return absl::Hash<const T*>{}(HashEq::ToPtr(ptr)); 148 using hash_default_hash = typename container_internal::HashEq<T>::Hash;
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | hash_function_defaults.h | 66 using Hash = absl::Hash<T>; member 74 return absl::Hash<absl::string_view>{}(v); in operator() 77 return absl::Hash<absl::Cord>{}(v); in operator() 99 using Hash = StringHash; member 113 struct Hash { 117 return absl::Hash<const T*>{}(HashEq::ToPtr(ptr)); 150 using hash_default_hash = typename container_internal::HashEq<T>::Hash;
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | HashUtils.h | 28 size_t Hash(const T& value) { in Hash() function 34 size_t Hash(const TypedInteger<Tag, T>& value) { in Hash() function 35 return Hash(static_cast<T>(value)); in Hash() 55 *hash ^= Hash(value) + offset + (*hash << 6) + (*hash >> 2); in HashCombine() 77 size_t Hash(const std::bitset<N>& value) { in Hash() function 96 return Hash(static_cast<const std::bitset<N>&>(value));
|