Home
last modified time | relevance | path

Searched refs:hash_code (Results 1 – 25 of 91) sorted by relevance

1234

/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DHashing.h72 class hash_code {
78 hash_code() = default;
81 hash_code(size_t value) : value(value) {} in hash_code() function
86 friend bool operator==(const hash_code &lhs, const hash_code &rhs) {
89 friend bool operator!=(const hash_code &lhs, const hash_code &rhs) {
94 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value()
105 typename std::enable_if<is_integral_or_enum<T>::value, hash_code>::type
111 template <typename T> hash_code hash_value(const T *ptr);
115 hash_code hash_value(const std::pair<T, U> &arg);
119 hash_code hash_value(const std::basic_string<T> &arg);
[all …]
/external/llvm/include/llvm/ADT/
DHashing.h72 class hash_code {
78 hash_code() = default;
81 hash_code(size_t value) : value(value) {} in hash_code() function
86 friend bool operator==(const hash_code &lhs, const hash_code &rhs) {
89 friend bool operator!=(const hash_code &lhs, const hash_code &rhs) {
94 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value()
105 typename std::enable_if<is_integral_or_enum<T>::value, hash_code>::type
111 template <typename T> hash_code hash_value(const T *ptr);
115 hash_code hash_value(const std::pair<T, U> &arg);
119 hash_code hash_value(const std::basic_string<T> &arg);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DHashing.h72 class hash_code {
78 hash_code() = default;
81 hash_code(size_t value) : value(value) {} in hash_code() function
86 friend bool operator==(const hash_code &lhs, const hash_code &rhs) {
89 friend bool operator!=(const hash_code &lhs, const hash_code &rhs) {
94 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value()
105 typename std::enable_if<is_integral_or_enum<T>::value, hash_code>::type
111 template <typename T> hash_code hash_value(const T *ptr);
115 hash_code hash_value(const std::pair<T, U> &arg);
119 hash_code hash_value(const std::basic_string<T> &arg);
[all …]
DDenseMapInfo.h265 template <> struct DenseMapInfo<hash_code> {
266 static inline hash_code getEmptyKey() { return hash_code(-1); }
267 static inline hash_code getTombstoneKey() { return hash_code(-2); }
268 static unsigned getHashValue(hash_code val) { return val; }
269 static bool isEqual(hash_code LHS, hash_code RHS) { return LHS == RHS; }
/external/libcxx/test/std/language.support/support.rtti/type.info/
Dtype_info_hash.pass.cpp21 assert(t1.hash_code() == t2.hash_code()); in main()
22 assert(t1.hash_code() != t3.hash_code()); in main()
/external/v8/src/inspector/
Dstring-16.h69 std::swap(hash_code, other.hash_code); in swap()
82 if (!hash_code) { in hash()
83 for (char c : m_impl) hash_code = 31 * hash_code + c; in hash()
86 if (!hash_code) ++hash_code; in hash()
88 return hash_code; in hash()
114 mutable std::size_t hash_code = 0; variable
/external/llvm/unittests/ADT/
DHashingTest.cpp25 void PrintTo(const hash_code &code, std::ostream *os) { in PrintTo()
36 friend hash_code hash_value(const NonPOD &obj) { in hash_value()
128 hash_code hash_value(HashableDummy dummy) { return dummy.value; } in hash_value()
133 hash_code dummy_hash = hash_combine_range(&dummy, &dummy); in TEST()
134 EXPECT_NE(hash_code(0), dummy_hash); in TEST()
137 hash_code arr1_hash = hash_combine_range(begin(arr1), end(arr1)); in TEST()
151 hash_code arr2_hash = hash_combine_range(begin(arr2), end(arr2)); in TEST()
156 hash_code arr3_hash = hash_combine_range(begin(arr3), end(arr3)); in TEST()
161 hash_code arr4_hash = hash_combine_range(begin(arr4), end(arr4)); in TEST()
167 hash_code arr5_hash = hash_combine_range(begin(arr5), end(arr5)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DHashingTest.cpp25 void PrintTo(const hash_code &code, std::ostream *os) { in PrintTo()
36 friend hash_code hash_value(const NonPOD &obj) { in hash_value()
128 hash_code hash_value(HashableDummy dummy) { return dummy.value; } in hash_value()
133 hash_code dummy_hash = hash_combine_range(&dummy, &dummy); in TEST()
134 EXPECT_NE(hash_code(0), dummy_hash); in TEST()
137 hash_code arr1_hash = hash_combine_range(begin(arr1), end(arr1)); in TEST()
151 hash_code arr2_hash = hash_combine_range(begin(arr2), end(arr2)); in TEST()
156 hash_code arr3_hash = hash_combine_range(begin(arr3), end(arr3)); in TEST()
161 hash_code arr4_hash = hash_combine_range(begin(arr4), end(arr4)); in TEST()
167 hash_code arr5_hash = hash_combine_range(begin(arr5), end(arr5)); in TEST()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dresource_mgr.cc47 result.set_hash_code(type_index.hash_code()); in MakeResourceHandle()
77 Status ResourceMgr::InsertDebugTypeName(uint64 hash_code, in InsertDebugTypeName() argument
79 auto iter = debug_type_names_.emplace(hash_code, type_name); in InsertDebugTypeName()
87 const char* ResourceMgr::DebugTypeName(uint64 hash_code) const { in DebugTypeName()
88 auto type_name_iter = debug_type_names_.find(hash_code); in DebugTypeName()
180 Container::value_type key_and_value(Key(type.hash_code(), borrowed_name), in DoCreate()
184 TF_RETURN_IF_ERROR(InsertDebugTypeName(type.hash_code(), type.name())); in DoCreate()
200 auto iter = b->find({type.hash_code(), name}); in DoLookup()
234 return DoDelete(container, type.hash_code(), resource_name, type.name()); in DoDelete()
238 return DoDelete(handle.container(), handle.hash_code(), handle.name(), in Delete()
Dresource_handle.h54 uint64 hash_code() const { return hash_code_; } in hash_code() function
55 void set_hash_code(uint64 hash_code) { hash_code_ = hash_code; } in set_hash_code() argument
Dresource_handle.cc34 proto->set_hash_code(hash_code()); in AsProto()
47 set_hash_code(proto.hash_code()); in FromProto()
73 " name: ", name(), " hash_code: ", hash_code(), in DebugString()
/external/clang/include/clang/Serialization/
DModuleFileExtension.h20 class hash_code; variable
83 virtual llvm::hash_code hashExtension(llvm::hash_code c) const;
/external/libcxx/include/
Dtypeindex33 size_t hash_code() const noexcept;
85 size_t hash_code() const _NOEXCEPT {return __t_->hash_code();}
98 {return __index.hash_code();}
Dtypeinfo29 size_t hash_code() const noexcept;
132 size_t hash_code() const _NOEXCEPT;
156 size_t hash_code() const _NOEXCEPT
188 size_t hash_code() const _NOEXCEPT
/external/libcxx/test/std/utilities/type.index/type.index.members/
Dhash_code.pass.cpp23 assert(t1.hash_code() == ti.hash_code()); in main()
/external/clang/lib/Serialization/
DModuleFileExtension.cpp16 llvm::hash_code ModuleFileExtension::hashExtension(llvm::hash_code Code) const { in hashExtension()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/PBQP/
DMath.h27 friend hash_code hash_value(const Vector &);
101 inline hash_code hash_value(const Vector &V) { in hash_value()
124 friend hash_code hash_value(const Matrix &);
238 inline hash_code hash_value(const Matrix &M) { in hash_value()
268 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value()
285 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Scalar/
DGVNExpression.h65 mutable hash_code HashVal = 0;
92 hash_code getComputedHash() const { in getComputedHash()
114 virtual hash_code getHashValue() const { return getOpcode(); } in getHashValue()
223 hash_code getHashValue() const override { in getHashValue()
281 hash_code getHashValue() const override { in getHashValue()
464 hash_code getHashValue() const override { in getHashValue()
525 hash_code getHashValue() const override { in getHashValue()
571 hash_code getHashValue() const override { in getHashValue()
608 hash_code getHashValue() const override { in getHashValue()
644 hash_code getHashValue() const override { in getHashValue()
/external/ImageMagick/coders/
Dgif.c582 *hash_code, in EncodeImage() local
615 hash_code=(short *) AcquireQuantumMemory(MaxHashTable,sizeof(*hash_code)); in EncodeImage()
619 if ((packet == (unsigned char *) NULL) || (hash_code == (short *) NULL) || in EncodeImage()
625 if (hash_code != (short *) NULL) in EncodeImage()
626 hash_code=(short *) RelinquishMagickMemory(hash_code); in EncodeImage()
637 (void) memset(hash_code,0,MaxHashTable*sizeof(*hash_code)); in EncodeImage()
685 if (hash_code[k] > 0) in EncodeImage()
690 waiting_code=hash_code[k]; in EncodeImage()
700 if (hash_code[k] == 0) in EncodeImage()
705 waiting_code=hash_code[k]; in EncodeImage()
[all …]
/external/clang/lib/Frontend/
DTestModuleFileExtension.h59 llvm::hash_code hashExtension(llvm::hash_code Code) const override;
DTestModuleFileExtension.cpp86 llvm::hash_code TestModuleFileExtension::hashExtension( in hashExtension()
87 llvm::hash_code Code) const { in hashExtension()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DRegisterBankInfo.cpp233 static hash_code hashPartialMapping(unsigned StartIdx, unsigned Length, in hashPartialMapping()
239 hash_code
250 hash_code Hash = hashPartialMapping(StartIdx, Length, &RegBank); in getPartialMapping()
268 static hash_code
284 hash_code Hash = hashValueMapping(BreakDown, NumBreakDowns); in getValueMapping()
304 hash_code Hash = hash_combine_range(Begin, End); in getOperandsMapping()
339 static hash_code
357 hash_code Hash = in getInstructionMappingImpl()
/external/llvm/include/llvm/CodeGen/PBQP/
DMath.h25 friend hash_code hash_value(const Vector &);
142 inline hash_code hash_value(const Vector &V) { in hash_value()
165 friend hash_code hash_value(const Matrix &);
380 inline hash_code hash_value(const Matrix &M) { in hash_value()
407 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value()
422 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value()
/external/v8/src/codegen/
Dassembler.h93 size_t hash_code() const { return hash_code_; } in hash_code() function
94 void set_hash_code(size_t hash_code) { hash_code_ = hash_code; } in set_hash_code() argument
/external/webp/src/enc/
Dbackward_references_enc.c255 uint32_t hash_code; in VP8LHashChainFill() local
283 hash_code = GetPixPairHash64(tmp); in VP8LHashChainFill()
284 chain[pos] = hash_to_first_index[hash_code]; in VP8LHashChainFill()
285 hash_to_first_index[hash_code] = pos++; in VP8LHashChainFill()
290 hash_code = GetPixPairHash64(argb + pos); in VP8LHashChainFill()
291 chain[pos] = hash_to_first_index[hash_code]; in VP8LHashChainFill()
292 hash_to_first_index[hash_code] = pos++; in VP8LHashChainFill()

1234