Home
last modified time | relevance | path

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

12345678

/external/llvm-project/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 std::enable_if_t<is_integral_or_enum<T>::value, hash_code> hash_value(T value);
110 template <typename T> hash_code hash_value(const T *ptr);
114 hash_code hash_value(const std::pair<T, U> &arg);
118 hash_code hash_value(const std::tuple<Ts...> &arg);
[all …]
DDenseMapInfo.h345 template <> struct DenseMapInfo<hash_code> {
346 static inline hash_code getEmptyKey() { return hash_code(-1); }
347 static inline hash_code getTombstoneKey() { return hash_code(-2); }
348 static unsigned getHashValue(hash_code val) { return val; }
349 static bool isEqual(hash_code LHS, hash_code RHS) { return LHS == RHS; }
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DHashing.h71 class hash_code {
77 hash_code() = default;
80 hash_code(size_t value) : value(value) {} in hash_code() function
85 friend bool operator==(const hash_code &lhs, const hash_code &rhs) {
88 friend bool operator!=(const hash_code &lhs, const hash_code &rhs) {
93 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value()
104 typename std::enable_if<is_integral_or_enum<T>::value, hash_code>::type
110 template <typename T> hash_code hash_value(const T *ptr);
114 hash_code hash_value(const std::pair<T, U> &arg);
118 hash_code hash_value(const std::basic_string<T> &arg);
[all …]
DDenseMapInfo.h276 template <> struct DenseMapInfo<hash_code> {
277 static inline hash_code getEmptyKey() { return hash_code(-1); }
278 static inline hash_code getTombstoneKey() { return hash_code(-2); }
279 static unsigned getHashValue(hash_code val) { return val; }
280 static bool isEqual(hash_code LHS, hash_code RHS) { return LHS == RHS; }
/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-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-project/libcxx/test/std/language.support/support.rtti/type.info/
Dtype_info_hash.pass.cpp24 assert(t1.hash_code() == t2.hash_code()); in main()
25 assert(t1.hash_code() != t3.hash_code()); in main()
/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/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/llvm-project/llvm/unittests/ADT/
DHashingTest.cpp24 void PrintTo(const hash_code &code, std::ostream *os) { in PrintTo()
35 friend hash_code hash_value(const NonPOD &obj) { in hash_value()
138 hash_code hash_value(HashableDummy dummy) { return dummy.value; } in hash_value()
143 hash_code dummy_hash = hash_combine_range(&dummy, &dummy); in TEST()
144 EXPECT_NE(hash_code(0), dummy_hash); in TEST()
147 hash_code arr1_hash = hash_combine_range(begin(arr1), end(arr1)); in TEST()
161 hash_code arr2_hash = hash_combine_range(begin(arr2), end(arr2)); in TEST()
166 hash_code arr3_hash = hash_combine_range(begin(arr3), end(arr3)); in TEST()
171 hash_code arr4_hash = hash_combine_range(begin(arr4), end(arr4)); in TEST()
177 hash_code arr5_hash = hash_combine_range(begin(arr5), end(arr5)); in TEST()
[all …]
/external/ukey2/src/main/cpp/src/securegcm/
Djava_util.cc48 int32_t hash_code = 1; in JavaHashCode() local
54 hash_code = JavaAdd(JavaMultiply(31, hash_code), int_value); in JavaHashCode()
56 return hash_code; in JavaHashCode()
/external/libjpeg-turbo/
Dwrgif.c94 code_int *hash_code; /* => hash table of symbol codes */ member
172 MEMZERO(dinfo->hash_code, HSIZE * sizeof(code_int)); in clear_hash()
204 if (dinfo->hash_code != NULL) in compress_init()
390 if (dest->hash_code[i] == 0) { in put_LZW_pixel_rows()
394 dest->hash_code[i] = dest->free_code++; /* add symbol to hashtable */ in put_LZW_pixel_rows()
402 dest->waiting_code = dest->hash_code[i]; in put_LZW_pixel_rows()
414 if (dest->hash_code[i] == 0) { in put_LZW_pixel_rows()
418 dest->hash_code[i] = dest->free_code++; /* add symbol to hashtable */ in put_LZW_pixel_rows()
426 dest->waiting_code = dest->hash_code[i]; in put_LZW_pixel_rows()
564 dest->hash_code = (code_int *) in jinit_write_gif()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dresource_mgr.cc50 result.set_hash_code(type_index.hash_code()); in MakeResourceHandle()
80 Status ResourceMgr::InsertDebugTypeName(uint64 hash_code, in InsertDebugTypeName() argument
82 auto iter = debug_type_names_.emplace(hash_code, type_name); in InsertDebugTypeName()
90 const char* ResourceMgr::DebugTypeName(uint64 hash_code) const { in DebugTypeName()
91 auto type_name_iter = debug_type_names_.find(hash_code); in DebugTypeName()
183 Container::value_type key_and_value(Key(type.hash_code(), borrowed_name), in DoCreate()
187 TF_RETURN_IF_ERROR(InsertDebugTypeName(type.hash_code(), type.name())); in DoCreate()
203 auto iter = b->find({type.hash_code(), name}); in DoLookup()
237 return DoDelete(container, type.hash_code(), resource_name, type.name()); in DoDelete()
241 return DoDelete(handle.container(), handle.hash_code(), handle.name(), in Delete()
/external/llvm-project/clang-tools-extra/clangd/
DFileDistance.cpp55 const llvm::hash_code FileDistance::RootHash =
61 llvm::DenseMap<llvm::hash_code, llvm::SmallVector<llvm::hash_code, 4>> in FileDistance()
71 llvm::hash_code Hash = llvm::hash_value(Rest); in FileDistance()
99 std::queue<llvm::hash_code> Next; in FileDistance()
121 llvm::SmallVector<llvm::hash_code, 16> Ancestors; in distance()
140 for (llvm::hash_code Hash : llvm::reverse(Ancestors)) { in distance()
DFileDistance.h75 static const llvm::hash_code RootHash;
86 llvm::DenseMap<llvm::hash_code, unsigned> Cache;
109 llvm::DenseMap<llvm::hash_code, unsigned> Cache;
/external/llvm-project/mlir/lib/Dialect/SPIRV/Linking/ModuleCombiner/
DModuleCombiner.cpp85 static llvm::hash_code computeHash(SymbolOpInterface symbolOp) { in computeHash()
86 llvm::hash_code hashCode(0); in computeHash()
99 llvm::hash_code computeHash(Block *block) { in computeHash()
102 llvm::hash_code hash(0); in computeHash()
233 DenseMap<llvm::hash_code, SymbolOpInterface> hashToSymbolOp; in combine()
237 llvm::hash_code hashCode(0); in combine()
/external/rust/crates/weak-table/src/
Dweak_value_hash_map.rs38 hash_code: HashCode, field
282 let hash_code = self.hash(&key); in entry_no_grow() localVariable
284 pos: self.which_bucket(hash_code), in entry_no_grow()
286 hash_code, in entry_no_grow()
322 let hash_code = self.hash(key); in find_bucket() localVariable
323 let mut pos = self.which_bucket(hash_code); in find_bucket()
327 if bucket_hash_code == hash_code { in find_bucket()
336 self.probe_distance(pos, self.which_bucket(hash_code)); in find_bucket()
537 if bucket.2 == self.hash_code { in bucket_status()
629 let InnerEntry { map, key, hash_code, pos } = self.inner; in insert()
[all …]
Dweak_weak_hash_map.rs39 hash_code: HashCode, field
282 let hash_code = K::with_key(&key, |k| self.hash(k)); in entry_no_grow() localVariable
284 pos: self.which_bucket(hash_code), in entry_no_grow()
286 hash_code, in entry_no_grow()
321 let hash_code = self.hash(key); in find_bucket() localVariable
322 let mut pos = self.which_bucket(hash_code); in find_bucket()
326 if b_hash_code == hash_code { in find_bucket()
335 self.probe_distance(pos, self.which_bucket(hash_code)); in find_bucket()
539 if bucket.2 == self.hash_code { in bucket_status()
635 Some((K::new(&self.inner.key), V::new(&value), self.inner.hash_code))); in insert()
[all …]
/external/llvm-project/clang/include/clang/Serialization/
DModuleFileExtension.h19 class hash_code; variable
82 virtual llvm::hash_code hashExtension(llvm::hash_code c) const;
/external/clang/include/clang/Serialization/
DModuleFileExtension.h20 class hash_code; variable
83 virtual llvm::hash_code hashExtension(llvm::hash_code c) const;
/external/llvm-project/libcxx/include/
Dtypeindex32 size_t hash_code() const noexcept;
84 size_t hash_code() const _NOEXCEPT {return __t_->hash_code();}
97 {return __index.hash_code();}
/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();}
/external/libcxx/test/std/utilities/type.index/type.index.members/
Dhash_code.pass.cpp23 assert(t1.hash_code() == ti.hash_code()); in main()
/external/llvm-project/libcxx/test/std/utilities/type.index/type.index.members/
Dhash_code.pass.cpp26 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()

12345678