/external/llvm-project/llvm/include/llvm/ADT/ |
D | Hashing.h | 72 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 …]
|
D | DenseMapInfo.h | 345 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-subzero/include/llvm/ADT/ |
D | Hashing.h | 72 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-10.0/llvm/include/llvm/ADT/ |
D | Hashing.h | 71 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 …]
|
D | DenseMapInfo.h | 276 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/ |
D | Hashing.h | 72 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/libcxx/test/std/language.support/support.rtti/type.info/ |
D | type_info_hash.pass.cpp | 21 assert(t1.hash_code() == t2.hash_code()); in main() 22 assert(t1.hash_code() != t3.hash_code()); in main()
|
/external/llvm-project/libcxx/test/std/language.support/support.rtti/type.info/ |
D | type_info_hash.pass.cpp | 24 assert(t1.hash_code() == t2.hash_code()); in main() 25 assert(t1.hash_code() != t3.hash_code()); in main()
|
/external/llvm/unittests/ADT/ |
D | HashingTest.cpp | 25 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/ukey2/src/main/cpp/src/securegcm/ |
D | java_util.cc | 48 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/llvm-project/llvm/unittests/ADT/ |
D | HashingTest.cpp | 24 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/libjpeg-turbo/ |
D | wrgif.c | 94 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/ |
D | resource_mgr.cc | 50 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/ |
D | FileDistance.cpp | 55 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()
|
D | FileDistance.h | 75 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/ |
D | ModuleCombiner.cpp | 85 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/ |
D | weak_value_hash_map.rs | 38 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 …]
|
D | weak_weak_hash_map.rs | 39 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/clang/include/clang/Serialization/ |
D | ModuleFileExtension.h | 20 class hash_code; variable 83 virtual llvm::hash_code hashExtension(llvm::hash_code c) const;
|
/external/llvm-project/clang/include/clang/Serialization/ |
D | ModuleFileExtension.h | 19 class hash_code; variable 82 virtual llvm::hash_code hashExtension(llvm::hash_code c) const;
|
/external/libcxx/include/ |
D | typeindex | 33 size_t hash_code() const noexcept; 85 size_t hash_code() const _NOEXCEPT {return __t_->hash_code();} 98 {return __index.hash_code();}
|
/external/llvm-project/libcxx/include/ |
D | typeindex | 32 size_t hash_code() const noexcept; 84 size_t hash_code() const _NOEXCEPT {return __t_->hash_code();} 97 {return __index.hash_code();}
|
/external/libcxx/test/std/utilities/type.index/type.index.members/ |
D | hash_code.pass.cpp | 23 assert(t1.hash_code() == ti.hash_code()); in main()
|
/external/llvm-project/libcxx/test/std/utilities/type.index/type.index.members/ |
D | hash_code.pass.cpp | 26 assert(t1.hash_code() == ti.hash_code()); in main()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ModuleFileExtension.cpp | 14 llvm::hash_code ModuleFileExtension::hashExtension(llvm::hash_code Code) const { in hashExtension()
|