/third_party/skia/third_party/externals/tint/src/utils/ |
H A 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(12 in TEST() [all...] |
/third_party/json/tests/thirdparty/Fuzzer/test/ |
H A 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 >> 1 in simple_hash() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
H A D | CachedHashString.h | 32 uint32_t Hash; member in llvm::CachedHashStringRef 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; member in llvm::CachedHashString 91 : P(EmptyOrTombstonePtr), Size(0), Hash(0) { in CachedHashString() 104 CachedHashString(StringRef S, uint32_t Hash) in CachedHashString() argument 105 : P(new char[S.size()]), Size(S.size()), Hash(Hash) { in CachedHashString() 127 : P(Other.P), Size(Other.Size), Hash(Other.Hash) { Hash() function in llvm::CachedHashString [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/ |
H A D | Hash.cpp | 1 //===- Hash.cpp - PDB Hash Functions --------------------------------------===// 9 #include "llvm/DebugInfo/PDB/Native/Hash.h" 33 // Maximum of 3 bytes left. Hash a 2 byte word if possible, then hash the in hashStringV1() 57 uint32_t Hash = 0xb170a1bf; in hashStringV2() local 65 Hash += Item; in hashStringV2() 66 Hash += (Hash << 10); in hashStringV2() 67 Hash ^= (Hash >> in hashStringV2() [all...] |
/third_party/node/lib/internal/crypto/ |
H A D | hash.js | 10 Hash: _Hash, 60 function Hash(algorithm, options) { class 61 if (!(this instanceof Hash)) 62 return new Hash(algorithm, options); 76 ObjectSetPrototypeOf(Hash.prototype, LazyTransform.prototype); 77 ObjectSetPrototypeOf(Hash, LazyTransform); 79 Hash.prototype.copy = function copy(options) { 84 return new Hash(this[kHandle], options); 87 Hash.prototype._transform = function _transform(chunk, encoding, callback) { 92 Hash [all...] |
/third_party/rust/crates/syn/src/gen/ |
H A D | hash.rs | 7 use std::hash::{Hash, Hasher}; 10 impl Hash for Abi { 20 impl Hash for AngleBracketedGenericArguments { 31 impl Hash for Arm { 45 impl Hash for AssocConst { 57 impl Hash for AssocType { 69 impl Hash for AttrStyle { 86 impl Hash for Attribute { 97 impl Hash for BareFnArg { 109 impl Hash fo [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A 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 type StringHash = Hash<string>;
62 interface StringHash2 extends Hash<string> {
|
H A D | taggedPrimitiveNarrowing.js | 2 type Hash = string & { __hash: true }; 4 function getHashLength(hash: Hash): number { 36 type Hash = string & {
39 declare function getHashLength(hash: Hash): number;
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | enum_explicit_type.rs | 9 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 15 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 21 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 27 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 32 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 37 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 42 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 48 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 57 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
H A D | class_nested.rs | 9 #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] 14 #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] 47 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 90 #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] 141 #[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)] 167 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] 173 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
/third_party/rust/crates/memchr/src/memmem/ |
H A D | rabinkarp.rs | 55 let mut hash = Hash::from_bytes_fwd(&haystack[..needle.len()]); 86 Hash::from_bytes_rev(&haystack[haystack.len() - needle.len()..]); 107 hash: Hash, 119 let mut nh = NeedleHash { hash: Hash::new(), hash_2pow: 1 }; 134 let mut nh = NeedleHash { hash: Hash::new(), hash_2pow: 1 }; 147 fn eq(&self, hash: Hash) -> bool { in eq() 155 pub(crate) struct Hash(u32); 157 impl Hash { impls 159 pub(crate) fn new() -> Hash { 160 Hash( [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/ |
H A D | hash_test.cc | 49 using absl::Hash; 62 // Helper trait to verify if T is hashable. We use absl::Hash's poison status to 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() 410 // implementation is recursive within absl::Hash. 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< [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/CodeView/ |
H A 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; in getHashValue() 189 if (LHS.Hash != RHS.Hash) in isEqual() 204 return *reinterpret_cast<const unsigned *>(Val.Hash.data()); in getHashValue() 209 return LHS.Hash == RHS.Hash; in isEqual() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
H A 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/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | hash_function_defaults.h | 15 // Define the default Hash and Eq functions for SwissTable containers. 63 // The hash of an object of type T is computed by using absl::Hash. 66 using Hash = absl::Hash<T>; 74 return absl::Hash<absl::string_view>{}(v); in operator ()() 77 return absl::Hash<absl::Cord>{}(v); in operator ()() 99 using Hash = StringHash; 113 struct Hash { struct 117 return absl::Hash<const T*>{}(HashEq::ToPtr(ptr)); in operator ()() 148 // Example: typename Hash [all...] |
/third_party/node/src/crypto/ |
H A D | crypto_hash.cc | 28 Hash::Hash(Environment* env, Local<Object> wrap) : BaseObject(env, wrap) { in Hash() function in node::crypto::Hash 32 void Hash::MemoryInfo(MemoryTracker* tracker) const { in MemoryInfo() 37 void Hash::GetHashes(const FunctionCallbackInfo<Value>& args) { in GetHashes() 55 void Hash::Initialize(Environment* env, Local<Object> target) { in Initialize() 61 Hash::kInternalFieldCount); in Initialize() 67 SetConstructorFunction(context, target, "Hash", t); in Initialize() 77 void Hash::RegisterExternalReferences(ExternalReferenceRegistry* registry) { in RegisterExternalReferences() 88 void Hash::New(const FunctionCallbackInfo<Value>& args) { in New() 91 const Hash* ori in New() [all...] |
/third_party/skia/third_party/externals/dawn/src/common/ |
H A 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() 43 // size_t hash = Hash(mask): 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)); in operator ()()
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
H A D | rsa_pss.c | 32 const EVP_MD *Hash, const unsigned char *EM, in RSA_verify_PKCS1_PSS() 35 return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen); in RSA_verify_PKCS1_PSS() 39 const EVP_MD *Hash, const EVP_MD *mgf1Hash, in RSA_verify_PKCS1_PSS_mgf1() 54 mgf1Hash = Hash; in RSA_verify_PKCS1_PSS_mgf1() 56 hLen = EVP_MD_get_size(Hash); in RSA_verify_PKCS1_PSS_mgf1() 121 if (!EVP_DigestInit_ex(ctx, Hash, NULL) in RSA_verify_PKCS1_PSS_mgf1() 148 const EVP_MD *Hash, int sLen) in RSA_padding_add_PKCS1_PSS() 150 return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen); in RSA_padding_add_PKCS1_PSS() 155 const EVP_MD *Hash, const EVP_MD *mgf1Hash, in RSA_padding_add_PKCS1_PSS_mgf1() 165 mgf1Hash = Hash; in RSA_padding_add_PKCS1_PSS_mgf1() 31 RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash, const EVP_MD *Hash, const unsigned char *EM, int sLen) RSA_verify_PKCS1_PSS() argument 38 RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, const unsigned char *EM, int sLen) RSA_verify_PKCS1_PSS_mgf1() argument 146 RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM, const unsigned char *mHash, const EVP_MD *Hash, int sLen) RSA_padding_add_PKCS1_PSS() argument 153 RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, const unsigned char *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, int sLen) RSA_padding_add_PKCS1_PSS_mgf1() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/regres/git/ |
H A D | git.go | 46 // Hash is a 20 byte, git object hash. 47 type Hash [20]byte type 49 func (h Hash) String() string { return hex.EncodeToString(h[:]) } 51 // ParseHash returns a Hash from a hexadecimal string. 52 func ParseHash(s string) Hash { 54 h := Hash{} 136 func CheckoutRemoteCommit(path, url string, commit Hash) error { 157 func CheckoutCommit(path string, commit Hash) error { 167 func FetchRefHash(ref, url string) (Hash, error) { 170 return Hash{}, er [all...] |
/third_party/openssl/crypto/rsa/ |
H A D | rsa_pss.c | 32 const EVP_MD *Hash, const unsigned char *EM, in RSA_verify_PKCS1_PSS() 35 return RSA_verify_PKCS1_PSS_mgf1(rsa, mHash, Hash, NULL, EM, sLen); in RSA_verify_PKCS1_PSS() 39 const EVP_MD *Hash, const EVP_MD *mgf1Hash, in RSA_verify_PKCS1_PSS_mgf1() 54 mgf1Hash = Hash; in RSA_verify_PKCS1_PSS_mgf1() 56 hLen = EVP_MD_get_size(Hash); in RSA_verify_PKCS1_PSS_mgf1() 121 if (!EVP_DigestInit_ex(ctx, Hash, NULL) in RSA_verify_PKCS1_PSS_mgf1() 148 const EVP_MD *Hash, int sLen) in RSA_padding_add_PKCS1_PSS() 150 return RSA_padding_add_PKCS1_PSS_mgf1(rsa, EM, mHash, Hash, NULL, sLen); in RSA_padding_add_PKCS1_PSS() 155 const EVP_MD *Hash, const EVP_MD *mgf1Hash, in RSA_padding_add_PKCS1_PSS_mgf1() 165 mgf1Hash = Hash; in RSA_padding_add_PKCS1_PSS_mgf1() 31 RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash, const EVP_MD *Hash, const unsigned char *EM, int sLen) RSA_verify_PKCS1_PSS() argument 38 RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, const unsigned char *EM, int sLen) RSA_verify_PKCS1_PSS_mgf1() argument 146 RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM, const unsigned char *mHash, const EVP_MD *Hash, int sLen) RSA_padding_add_PKCS1_PSS() argument 153 RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM, const unsigned char *mHash, const EVP_MD *Hash, const EVP_MD *mgf1Hash, int sLen) RSA_padding_add_PKCS1_PSS_mgf1() argument [all...] |
/third_party/rust/crates/aho-corasick/src/packed/ |
H A D | rabinkarp.rs | 7 type Hash = usize; types 45 buckets: Vec<Vec<(Hash, PatternID)>>, 137 self.buckets.len() * mem::size_of::<Vec<(Hash, PatternID)>>() in heap_bytes() 138 + num_patterns * mem::size_of::<(Hash, PatternID)>() in heap_bytes() 166 /// Hash the given bytes. 167 fn hash(&self, bytes: &[u8]) -> Hash { in hash() 180 fn update_hash(&self, prev: Hash, old_byte: u8, new_byte: u8) -> Hash { in update_hash()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AccelTable.cpp | 252 for (auto &Hash : Bucket) { in emitHashes() 253 uint32_t HashValue = Hash->HashValue; in emitHashes() 256 Asm->OutStreamer->AddComment("Hash in Bucket " + Twine(BucketIdx)); in emitHashes() 268 for (auto *Hash : Buckets[i]) { in emitOffsets() 269 uint32_t HashValue = Hash->HashValue; in emitOffsets() 274 Asm->EmitLabelDifference(Hash->Sym, Base, sizeof(uint32_t)); in emitOffsets() 284 Asm->OutStreamer->AddComment("Header Hash Function"); in emit() 288 Asm->OutStreamer->AddComment("Header Hash Count"); in emit() 333 for (auto &Hash : Buckets[i]) { in emitData() 337 PrevHash != Hash in emitData() [all...] |
H A D | DIEHash.cpp | 46 Hash.update(Str); in addString() 47 Hash.update(makeArrayRef((uint8_t)'\0')); in addString() 61 Hash.update(Byte); in addULEB128() 75 Hash.update(Byte); in addSLEB128() 215 // Hash all of the values in a block like set of values. This assumes that 219 Hash.update((uint64_t)V.getDIEInteger().getValue()); in hashBlockData() 222 // Hash the contents of a loclistptr class. 231 // Hash an individual attribute \param Attr based on the type of attribute and 376 Hash.update(makeArrayRef((uint8_t)'\0')); in computeHash() 388 Hash in computeCUSignature() [all...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | refs-map.cc | 22 return UnderlyingMap::Lookup(key, Hash(key)); in Lookup() 26 return UnderlyingMap::LookupOrInsert(key, RefsMap::Hash(key), in LookupOrInsert() 31 return UnderlyingMap::Remove(key, RefsMap::Hash(key)); in Remove() 34 uint32_t RefsMap::Hash(Address addr) { return static_cast<uint32_t>(addr); } in Hash() function in v8::internal::RefsMap
|
/third_party/rust/crates/cxx/gen/build/src/syntax/ |
H A D | map.rs | 2 use std::hash::Hash; 13 use std::hash::Hash; 40 K: Copy + Hash + Eq, 59 Q: ?Sized + Hash + Eq, in contains_key() 67 Q: ?Sized + Hash + Eq, in get() 87 use std::hash::Hash; 101 K: Hash + Eq, 110 Q: ?Sized + Hash + Eq, in contains_key() 118 Q: ?Sized + Hash + Eq, in get() 131 Q: ?Sized + Hash in remove() [all...] |