| /freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | Hash.cpp | 58 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()
|
| /freebsd-12.1/contrib/llvm/include/llvm/ADT/ |
| H A D | CachedHashString.h | 33 uint32_t Hash; variable 41 : P(S.data()), Size(S.size()), Hash(Hash) { in CachedHashStringRef() 48 uint32_t hash() const { return Hash; } in hash() 78 uint32_t Hash; 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) { 139 uint32_t hash() const { return Hash; } 143 return CachedHashStringRef(val(), Hash); [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | ODRHash.cpp | 237 ODRHash &Hash; member in __anondc2745e90111::ODRDeclVisitor 241 : ID(ID), Hash(Hash) {} in ODRDeclVisitor() 244 Hash.AddBoolean(S); in AddStmt() 246 Hash.AddStmt(S); in AddStmt() 262 Hash.AddBoolean(D); in AddDecl() 264 Hash.AddDecl(D); in AddDecl() 650 ODRHash &Hash; member in __anondc2745e90211::ODRTypeVisitor 654 : ID(ID), Hash(Hash) {} in ODRTypeVisitor() 659 Hash.AddStmt(S); in AddStmt() 666 Hash.AddDecl(D); in AddDecl() [all …]
|
| /freebsd-12.1/contrib/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | TypeHashing.h | 34 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) {
|
| H A D | GlobalTypeTableBuilder.h | 73 TypeIndex insertRecordAs(GloballyHashedType Hash, size_t RecordSize, in insertRecordAs() argument 75 auto Result = HashedRecords.try_emplace(Hash, nextTypeIndex()); in insertRecordAs() 81 SeenHashes.push_back(Hash); in insertRecordAs()
|
| /freebsd-12.1/crypto/openssl/crypto/rsa/ |
| H A 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() 157 mgf1Hash = Hash; in RSA_padding_add_PKCS1_PSS_mgf1() 159 hLen = EVP_MD_size(Hash); in RSA_padding_add_PKCS1_PSS_mgf1() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/ObjectYAML/ |
| H A D | CodeViewYAMLTypeHashing.cpp | 38 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()
|
| /freebsd-12.1/contrib/compiler-rt/lib/ubsan/ |
| H A D | ubsan_type_hash_itanium.cc | 211 bool __ubsan::checkDynamicType(void *Object, void *Type, HashValue Hash) { in checkDynamicType() argument 216 HashValue *Bucket = getTypeCacheHashTableBucket(Hash); in checkDynamicType() 217 if (*Bucket == Hash) { in checkDynamicType() 218 __ubsan_vptr_type_cache[Hash % VptrTypeCacheSize] = Hash; in checkDynamicType() 242 __ubsan_vptr_type_cache[Hash % VptrTypeCacheSize] = Hash; in checkDynamicType() 243 *Bucket = Hash; in checkDynamicType()
|
| H A D | ubsan_handlers_cxx.cc | 35 DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash, in HandleDynamicTypeCacheMiss() argument 37 if (checkDynamicType((void*)Pointer, Data->TypeInfo, Hash)) in HandleDynamicTypeCacheMiss() 86 DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash) { in __ubsan_handle_dynamic_type_cache_miss() argument 88 HandleDynamicTypeCacheMiss(Data, Pointer, Hash, Opts); in __ubsan_handle_dynamic_type_cache_miss() 91 DynamicTypeCacheMissData *Data, ValueHandle Pointer, ValueHandle Hash) { in __ubsan_handle_dynamic_type_cache_miss_abort() argument 94 if (HandleDynamicTypeCacheMiss(Data, Pointer, Hash, Opts)) in __ubsan_handle_dynamic_type_cache_miss_abort()
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AccelTable.cpp | 254 for (auto &Hash : Bucket) { in emitHashes() local 270 for (auto *Hash : Buckets[i]) { in emitOffsets() local 335 for (auto &Hash : Buckets[i]) { in emitData() local 339 PrevHash != Hash->HashValue) in emitData() 347 for (const auto *V : Hash->Values) in emitData() 349 PrevHash = Hash->HashValue; in emitData() 403 for (auto *Hash : Bucket) { in getUniqueTags() local 447 for (auto *Hash : Bucket.value()) { in emitStringOffsets() local 505 for (auto *Hash : Bucket) { in emitData() local 695 for (auto &Hash : Bucket) in print() local [all …]
|
| H A D | DIEHash.cpp | 47 Hash.update(Str); in addString() 48 Hash.update(makeArrayRef((uint8_t)'\0')); in addString() 62 Hash.update(Byte); in addULEB128() 76 Hash.update(Byte); in addSLEB128() 220 Hash.update((uint64_t)V.getDIEInteger().getValue()); in hashBlockData() 376 Hash.update(makeArrayRef((uint8_t)'\0')); in computeHash() 388 Hash.update(DWOName); in computeCUSignature() 394 Hash.final(Result); in computeCUSignature() 418 Hash.final(Result); in computeTypeSignature()
|
| H A D | ByteStreamer.h | 60 DIEHash &Hash; 62 HashingByteStreamer(DIEHash &H) : Hash(H) {} in HashingByteStreamer() 64 Hash.update(Byte); in EmitInt8() 67 Hash.addSLEB128(DWord); in EmitSLEB128() 70 Hash.addULEB128(DWord); in EmitULEB128()
|
| /freebsd-12.1/contrib/compiler-rt/lib/esan/ |
| H A D | esan_hashtable.h | 180 size_t Hash = HashFunc(Key) % Capacity; in lookup() local 181 HashEntry *Entry = Table[Hash]; in lookup() 210 OldEntry->Next = Table[Hash]; in resize() 211 Table[Hash] = OldEntry; in resize() 224 size_t Hash = HashFunc(Key) % Capacity; in add() local 225 HashEntry *Entry = Table[Hash]; in add() 236 Hash = HashFunc(Key) % Capacity; in add() 241 Add->Next = Table[Hash]; in add() 242 Table[Hash] = Add; in add() 257 HashEntry *Entry = Table[Hash]; in remove() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/X86/ |
| H A D | X86OptimizeLEAs.cpp | 138 hash_code Hash = hash_combine(*Val.Operands[0], *Val.Operands[1], in getHashValue() local 150 Hash = hash_combine(Hash, Val.Disp->getIndex()); in getHashValue() 153 Hash = hash_combine(Hash, Val.Disp->getSymbolName()); in getHashValue() 156 Hash = hash_combine(Hash, Val.Disp->getGlobal()); in getHashValue() 159 Hash = hash_combine(Hash, Val.Disp->getBlockAddress()); in getHashValue() 162 Hash = hash_combine(Hash, Val.Disp->getMCSymbol()); in getHashValue() 165 Hash = hash_combine(Hash, Val.Disp->getMBB()); in getHashValue() 171 return (unsigned)Hash; in getHashValue()
|
| /freebsd-12.1/contrib/libc++/include/ext/ |
| H A D | hash_set | 93 template <class Value, class Hash, class Pred, class Alloc> 94 void swap(hash_set<Value, Hash, Pred, Alloc>& x, 95 hash_set<Value, Hash, Pred, Alloc>& y); 97 template <class Value, class Hash, class Pred, class Alloc> 99 operator==(const hash_set<Value, Hash, Pred, Alloc>& x, 100 const hash_set<Value, Hash, Pred, Alloc>& y); 102 template <class Value, class Hash, class Pred, class Alloc> 104 operator!=(const hash_set<Value, Hash, Pred, Alloc>& x, 105 const hash_set<Value, Hash, Pred, Alloc>& y); 180 void swap(hash_multiset<Value, Hash, Pred, Alloc>& x, [all …]
|
| /freebsd-12.1/contrib/libc++/include/experimental/ |
| H A D | unordered_set | 22 template <class T, class Hash = hash<T>, class Pred = equal_to<T>> 23 using unordered_set = std::unordered_set<T, Hash, Pred, 26 template <class T, class Hash = hash<T>, class Pred = equal_to<T>> 27 using unordered_multiset = std::unordered_multiset<T, Hash, Pred,
|
| H A D | unordered_map | 23 class Hash = hash<Key>, 26 std::unordered_map<Key, T, Hash, Pred, 30 class Hash = hash<Key>, 33 std::unordered_multimap<Key, T, Hash, Pred,
|
| /freebsd-12.1/contrib/llvm/include/llvm/ObjectYAML/ |
| H A D | CodeViewYAMLTypeHashing.h | 34 explicit GlobalHash(StringRef S) : Hash(S) { in GlobalHash() 37 explicit GlobalHash(ArrayRef<uint8_t> S) : Hash(S) { in GlobalHash() 40 yaml::BinaryRef Hash; member
|
| /freebsd-12.1/contrib/llvm/include/llvm/CodeGen/ |
| H A D | AccelTable.h | 149 HashData(DwarfStringPoolEntryRef Name, HashFn *Hash) in HashData() 150 : Name(Name), HashValue(Hash(Name.getString())) {} in HashData() 167 HashFn *Hash; variable 176 AccelTableBase(HashFn *Hash) : Entries(Allocator), Hash(Hash) {} in AccelTableBase() argument 214 auto Iter = Entries.try_emplace(Name.getString(), Name, Hash).first; in addName()
|
| /freebsd-12.1/contrib/file/magic/Magdir/ |
| H A D | perl | 73 # The Perl module Hash::SharedMem 74 # <https://metacpan.org/release/Hash-SharedMem> defines a file format 77 0 bequad =0xa58afd185cbf5af7 Hash::SharedMem master file, big-endian 83 0 lequad =0xa58afd185cbf5af7 Hash::SharedMem master file, little-endian 89 0 bequad =0xc693dac5ed5e47c2 Hash::SharedMem data file, big-endian 95 0 lequad =0xc693dac5ed5e47c2 Hash::SharedMem data file, little-endian
|
| /freebsd-12.1/sys/netgraph/ |
| H A D | ng_pred1.c | 69 #define HASH(x) priv->Hash = (priv->Hash << 4) ^ (x) 78 uint16_t Hash; member 575 priv->Hash = 0; in Pred1Init() 596 if (priv->GuessTable[priv->Hash] == *source) in Pred1Compress() 601 priv->GuessTable[priv->Hash] = *source; in Pred1Compress() 634 *dest = priv->GuessTable[priv->Hash]; in Pred1Decompress() 641 priv->GuessTable[priv->Hash] = *source; in Pred1Decompress() 663 priv->GuessTable[priv->Hash] = *source; in Pred1SyncTable()
|
| /freebsd-12.1/contrib/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFAcceleratorTable.cpp | 245 if (Hash % Hdr.BucketCount != Bucket) in dump() 350 if (Hash % Hdr.BucketCount != Bucket) in equal_range() 673 if (Hash) in dumpName() 674 W.printHex("Hash", *Hash); in dumpName() 730 uint32_t Hash = getHashArrayEntry(Index); in dumpBucket() local 731 if (Hash % Hdr.BucketCount != Bucket) in dumpBucket() 734 dumpName(W, getNameTableEntry(Index), Hash); in dumpBucket() 794 if (!Hash) in findEntryOffsetInCurrentIndex() 795 Hash = caseFoldingDjbHash(Key); in findEntryOffsetInCurrentIndex() 796 uint32_t Bucket = *Hash % Hdr.BucketCount; in findEntryOffsetInCurrentIndex() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/ |
| H A D | RegisterBankInfo.cpp | 250 hash_code Hash = hashPartialMapping(StartIdx, Length, &RegBank); in getPartialMapping() local 251 const auto &It = MapOfPartialMappings.find(Hash); in getPartialMapping() 257 auto &PartMapping = MapOfPartialMappings[Hash]; in getPartialMapping() 284 hash_code Hash = hashValueMapping(BreakDown, NumBreakDowns); in getValueMapping() local 285 const auto &It = MapOfValueMappings.find(Hash); in getValueMapping() 291 auto &ValMapping = MapOfValueMappings[Hash]; in getValueMapping() 304 hash_code Hash = hash_combine_range(Begin, End); in getOperandsMapping() local 305 auto &Res = MapOfOperandsMappings[Hash]; in getOperandsMapping() 357 hash_code Hash = in getInstructionMappingImpl() local 359 const auto &It = MapOfInstructionMappings.find(Hash); in getInstructionMappingImpl() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/ |
| H A D | CloneDetection.cpp | 226 static size_t createHash(llvm::MD5 &Hash) { in createHash() argument 231 Hash.final(HashResult); in createHash() 253 llvm::MD5 Hash; in saveHash() local 256 CloneTypeIIStmtDataCollector<llvm::MD5>(S, Context, Hash); in saveHash() 267 Hash.update( in saveHash() 280 llvm::MD5 Hash; in saveHash() local 285 Hash.update( in saveHash() 290 llvm::MD5 SubHash = Hash; in saveHash() 298 size_t HashCode = createHash(Hash); in saveHash()
|
| /freebsd-12.1/contrib/llvm/lib/Transforms/Utils/ |
| H A D | NameAnonGlobals.cpp | 55 MD5::MD5Result Hash; in get() local 56 Hasher.final(Hash); in get() 58 MD5::stringifyResult(Hash, Result); in get()
|