/external/llvm-project/llvm/unittests/ADT/ |
D | HashingTest.cpp | 35 friend hash_code hash_value(const NonPOD &obj) { in hash_value() function 65 EXPECT_EQ(hash_value(42), hash_value(x)); in TEST() 66 EXPECT_EQ(hash_value(42), hash_value(TE_Foo)); in TEST() 67 EXPECT_NE(hash_value(42), hash_value(y)); in TEST() 68 EXPECT_NE(hash_value(42), hash_value(TE_Bar)); in TEST() 69 EXPECT_NE(hash_value(42), hash_value(p)); in TEST() 70 EXPECT_EQ(hash_value(71), hash_value(i)); in TEST() 71 EXPECT_EQ(hash_value(71), hash_value(ci)); in TEST() 72 EXPECT_EQ(hash_value(71), hash_value(vi)); in TEST() 73 EXPECT_EQ(hash_value(71), hash_value(cvi)); in TEST() [all …]
|
D | OptionalTest.cpp | 605 EXPECT_NE(hash_value(B0), hash_value(B)); in TEST() 606 EXPECT_NE(hash_value(B1), hash_value(B)); in TEST() 607 EXPECT_NE(hash_value(B1), hash_value(B0)); in TEST() 611 EXPECT_NE(hash_value(I0), hash_value(I)); in TEST() 612 EXPECT_NE(hash_value(I1), hash_value(I)); in TEST() 613 EXPECT_NE(hash_value(I1), hash_value(I0)); in TEST() 616 EXPECT_EQ(hash_value(B), hash_value(I)); in TEST()
|
/external/llvm/unittests/ADT/ |
D | HashingTest.cpp | 36 friend hash_code hash_value(const NonPOD &obj) { in hash_value() function 66 EXPECT_EQ(hash_value(42), hash_value(x)); in TEST() 67 EXPECT_EQ(hash_value(42), hash_value(TE_Foo)); in TEST() 68 EXPECT_NE(hash_value(42), hash_value(y)); in TEST() 69 EXPECT_NE(hash_value(42), hash_value(TE_Bar)); in TEST() 70 EXPECT_NE(hash_value(42), hash_value(p)); in TEST() 71 EXPECT_EQ(hash_value(71), hash_value(i)); in TEST() 72 EXPECT_EQ(hash_value(71), hash_value(ci)); in TEST() 73 EXPECT_EQ(hash_value(71), hash_value(vi)); in TEST() 74 EXPECT_EQ(hash_value(71), hash_value(cvi)); in TEST() [all …]
|
D | StringRefTest.cpp | 405 EXPECT_EQ(hash_value(std::string()), hash_value(StringRef())); in TEST() 406 EXPECT_EQ(hash_value(std::string()), hash_value(StringRef(""))); in TEST() 408 hash_code H = hash_value(S); in TEST() 409 EXPECT_EQ(H, hash_value(StringRef("hello world"))); in TEST() 410 EXPECT_EQ(H, hash_value(StringRef(S))); in TEST() 411 EXPECT_NE(H, hash_value(StringRef("hello worl"))); in TEST() 412 EXPECT_EQ(hash_value(std::string("hello worl")), in TEST() 413 hash_value(StringRef("hello worl"))); in TEST() 414 EXPECT_NE(H, hash_value(StringRef("hello world "))); in TEST() 415 EXPECT_EQ(hash_value(std::string("hello world ")), in TEST() [all …]
|
/external/pigweed/pw_rpc/py/pw_rpc/ |
D | ids.py | 23 hash_value = len(string) 27 hash_value = (hash_value + coefficient * ord(char)) % 2**32 30 return hash_value
|
/external/scapy/scapy/layers/tls/crypto/ |
D | hkdf.py | 37 def expand_label(self, secret, label, hash_value, length): argument 42 hkdf_label += struct.pack("B", len(hash_value)) 43 hkdf_label += hash_value 59 hash_value = h.finalize() 62 hm.update(hash_value)
|
/external/libsrtp2/crypto/hash/ |
D | sha1.c | 79 void srtp_sha1(const uint8_t *msg, int octets_in_msg, uint32_t hash_value[5]) in srtp_sha1() 85 srtp_sha1_final(&ctx, hash_value); in srtp_sha1() 100 void srtp_sha1_core(const uint32_t M[16], uint32_t hash_value[5]) in srtp_sha1_core() 112 H0 = hash_value[0]; in srtp_sha1_core() 113 H1 = hash_value[1]; in srtp_sha1_core() 114 H2 = hash_value[2]; in srtp_sha1_core() 115 H3 = hash_value[3]; in srtp_sha1_core() 116 H4 = hash_value[4]; in srtp_sha1_core() 214 hash_value[0] = H0 + A; in srtp_sha1_core() 215 hash_value[1] = H1 + B; in srtp_sha1_core() [all …]
|
D | hmac_ossl.c | 191 uint8_t hash_value[SHA1_DIGEST_SIZE]; in srtp_hmac_compute() local 204 if (HMAC_Final(state, hash_value, &len) == 0) in srtp_hmac_compute() 212 result[i] = hash_value[i]; in srtp_hmac_compute() 216 srtp_octet_string_hex_string(hash_value, tag_len)); in srtp_hmac_compute()
|
D | hmac.c | 188 uint32_t hash_value[5]; in srtp_hmac_compute() local 218 srtp_sha1_final(&state->ctx, hash_value); in srtp_hmac_compute() 222 result[i] = ((uint8_t *)hash_value)[i]; in srtp_hmac_compute() 226 srtp_octet_string_hex_string((uint8_t *)hash_value, tag_len)); in srtp_hmac_compute()
|
/external/libsrtp2/crypto/test/ |
D | sha1_driver.c | 112 uint32_t hash_value[5]; in sha1_test_case_validate() local 124 srtp_sha1_final(&ctx, hash_value); in sha1_test_case_validate() 125 if (0 == memcmp(test_case->hash, hash_value, 20)) { in sha1_test_case_validate() 130 octet_string_hex_string((const uint8_t *)hash_value, 20)); in sha1_test_case_validate() 138 octet_string_hex_string((const uint8_t *)hash_value, 20)); in sha1_test_case_validate()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | computation_layout.cc | 94 uint64 hash_value = ShapeUtil::Hash(result_layout_.shape()); in Hash() local 96 hash_value = tensorflow::Hash64Combine( in Hash() 97 hash_value, ShapeUtil::Hash(parameter_layout.shape())); in Hash() 99 return hash_value; in Hash()
|
/external/toolchain-utils/bestflags/ |
D | task_test.py | 36 def __init__(self, flags=0, hash_value=-1): argument 38 self._hash_value = hash_value 90 hash_value = hash(hash_task) 91 assert hash_value == flag_set.GetHash() 94 assert hash_value == hash(hash_task)
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | IntegerSet.h | 105 friend ::llvm::hash_code hash_value(IntegerSet arg); 114 inline ::llvm::hash_code hash_value(IntegerSet arg) { in hash_value() function 115 return ::llvm::hash_value(arg.set); in hash_value() 132 return mlir::hash_value(val);
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | layout_util.cc | 446 size_t hash_value = hash<Format>()(layout.format()); in Hash() local 449 hash_value = Hash64Combine(hash_value, hash<int64>()(minor_to_major)); in Hash() 453 hash_value = Hash64Combine(hash_value, hash<int64>()(tile_dim)); in Hash() 456 hash_value = Hash64Combine(hash_value, layout.element_size_in_bits()); in Hash() 457 hash_value = Hash64Combine(hash_value, layout.memory_space()); in Hash() 459 return hash_value; in Hash()
|
/external/libaom/libaom/av1/encoder/ |
D | hash_motion.c | 135 uint32_t hash_value, in hash_table_add_to_table() argument 137 if (p_hash_table->p_lookup_table[hash_value] == NULL) { in hash_table_add_to_table() 138 p_hash_table->p_lookup_table[hash_value] = in hash_table_add_to_table() 140 aom_vector_setup(p_hash_table->p_lookup_table[hash_value], 10, in hash_table_add_to_table() 142 aom_vector_push_back(p_hash_table->p_lookup_table[hash_value], in hash_table_add_to_table() 145 aom_vector_push_back(p_hash_table->p_lookup_table[hash_value], in hash_table_add_to_table() 151 uint32_t hash_value) { in av1_hash_table_count() argument 152 if (p_hash_table->p_lookup_table[hash_value] == NULL) { in av1_hash_table_count() 155 return (int32_t)(p_hash_table->p_lookup_table[hash_value]->size); in av1_hash_table_count() 160 uint32_t hash_value) { in av1_hash_get_first_iterator() argument [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | Hashing.h | 94 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value() function 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); 122 hash_code hash_value(const std::basic_string<T> &arg); 377 using ::llvm::hash_value; 378 return hash_value(value); 634 std::enable_if_t<is_integral_or_enum<T>::value, hash_code> hash_value(T value) { 641 template <typename T> hash_code hash_value(const T *ptr) { [all …]
|
/external/python/pycparser/examples/c_files/ |
D | hash.c | 34 unsigned int hash_value; in hash_func() local 37 for (hash_value = 0; *str != 0; ++str) in hash_func() 38 hash_value = (a*hash_value + *str) % table_size; in hash_func() 40 return hash_value; in hash_func()
|
/external/llvm-project/mlir/include/mlir/Support/ |
D | TypeID.h | 83 friend ::llvm::hash_code hash_value(TypeID id); 96 inline ::llvm::hash_code hash_value(TypeID id) { in hash_value() function 97 return llvm::hash_value(id.storage); in hash_value() 152 return mlir::hash_value(val);
|
/external/llvm-project/lldb/examples/synthetic/ |
D | unordered_multi.py | 105 hash_value = node.GetChildMemberWithName( 107 self.elements_cache.append((value, hash_value)) 116 value, hash_value = self.elements_cache[index] 119 (index, hash_value), value.GetData(), value.GetType())
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/PBQP/ |
D | Math.h | 26 friend hash_code hash_value(const Vector &); 100 inline hash_code hash_value(const Vector &V) { in hash_value() function 123 friend hash_code hash_value(const Matrix &); 237 inline hash_code hash_value(const Matrix &M) { in hash_value() function 267 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value() function 268 return hash_value(static_cast<const Vector&>(V)); in hash_value() 284 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value() function 285 return hash_value(static_cast<const Matrix&>(M)); in hash_value()
|
/external/llvm-project/llvm/include/llvm/CodeGen/PBQP/ |
D | Math.h | 26 friend hash_code hash_value(const Vector &); 100 inline hash_code hash_value(const Vector &V) { in hash_value() function 123 friend hash_code hash_value(const Matrix &); 237 inline hash_code hash_value(const Matrix &M) { in hash_value() function 267 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value() function 268 return hash_value(static_cast<const Vector&>(V)); in hash_value() 284 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value() function 285 return hash_value(static_cast<const Matrix&>(M)); in hash_value()
|
/external/llvm-project/clang/lib/Basic/ |
D | Sanitizers.cpp | 46 llvm::hash_code SanitizerMask::hash_value() const { in hash_value() function in SanitizerMask 51 llvm::hash_code hash_value(const clang::SanitizerMask &Arg) { in hash_value() function 52 return Arg.hash_value(); in hash_value()
|
/external/selinux/libsepol/src/ |
D | hashtab.c | 35 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, in hashtab_create() 53 p->hash_value = hash_value; in hashtab_create() 74 hvalue = h->hash_value(h, key); in hashtab_insert() 113 hvalue = h->hash_value(h, key); in hashtab_remove() 146 hvalue = h->hash_value(h, key); in hashtab_replace() 187 hvalue = h->hash_value(h, key); in hashtab_search()
|
/external/selinux/policycoreutils/newrole/ |
D | hashtab.c | 14 hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h, in hashtab_create() 32 p->hash_value = hash_value; in hashtab_create() 53 hvalue = h->hash_value(h, key); in hashtab_insert() 92 hvalue = h->hash_value(h, key); in hashtab_remove() 125 hvalue = h->hash_value(h, key); in hashtab_replace() 166 hvalue = h->hash_value(h, key); in hashtab_search()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | FileDistance.cpp | 56 llvm::hash_value(llvm::StringRef("/")); 71 llvm::hash_code Hash = llvm::hash_value(Rest); in FileDistance() 74 auto NextHash = llvm::hash_value(Rest); in FileDistance() 100 for (auto Child : DownEdges.lookup(llvm::hash_value(llvm::StringRef("")))) in FileDistance() 125 auto Hash = llvm::hash_value(Rest); in distance() 150 auto R = Cache.try_emplace(llvm::hash_value(URI), FileDistance::Unreachable); in distance()
|