Home
last modified time | relevance | path

Searched refs:hash_value (Results 1 – 25 of 60) sorted by relevance

123

/external/llvm/unittests/ADT/
DHashingTest.cpp36 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 …]
DStringRefTest.cpp405 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/v8/src/base/
Dfunctional.h88 V8_INLINE size_t hash_value(type v) { return static_cast<size_t>(v); }
94 size_t hash_value(unsigned int);
95 size_t hash_value(unsigned long); // NOLINT(runtime/int)
96 size_t hash_value(unsigned long long); // NOLINT(runtime/int)
99 V8_INLINE size_t hash_value(signed type v) { \
100 return hash_value(bit_cast<unsigned type>(v)); \
109 V8_INLINE size_t hash_value(float v) { in V8_BASE_HASH_VALUE_SIGNED()
111 return v != 0.0f ? hash_value(bit_cast<uint32_t>(v)) : 0; in V8_BASE_HASH_VALUE_SIGNED()
114 V8_INLINE size_t hash_value(double v) { in hash_value() function
116 return v != 0.0 ? hash_value(bit_cast<uint64_t>(v)) : 0; in hash_value()
[all …]
Dfunctional.cc98 size_t hash_value(unsigned int v) { return hash_value_unsigned(v); } in hash_value() function
101 size_t hash_value(unsigned long v) { // NOLINT(runtime/int) in hash_value() function
106 size_t hash_value(unsigned long long v) { // NOLINT(runtime/int) in hash_value() function
/external/srtp/crypto/test/
Dsha1_driver.c100 uint32_t hash_value[5]; in sha1_test_case_validate() local
112 sha1_final(&ctx, hash_value); in sha1_test_case_validate()
113 if (0 == memcmp(test_case->hash, hash_value, 20)) { in sha1_test_case_validate()
118 octet_string_hex_string((uint8_t *)hash_value, 20)); in sha1_test_case_validate()
126 octet_string_hex_string((uint8_t *)hash_value, 20)); in sha1_test_case_validate()
/external/srtp/crypto/hash/
Dsha1.c77 sha1(const uint8_t *msg, int octets_in_msg, uint32_t hash_value[5]) { in sha1()
82 sha1_final(&ctx, hash_value); in sha1()
99 sha1_core(const uint32_t M[16], uint32_t hash_value[5]) { in sha1_core()
110 H0 = hash_value[0]; in sha1_core()
111 H1 = hash_value[1]; in sha1_core()
112 H2 = hash_value[2]; in sha1_core()
113 H3 = hash_value[3]; in sha1_core()
114 H4 = hash_value[4]; in sha1_core()
176 hash_value[0] = H0 + A; in sha1_core()
177 hash_value[1] = H1 + B; in sha1_core()
[all …]
Dhmac.c172 uint32_t hash_value[5]; in hmac_compute() local
201 sha1_final(&state->ctx, hash_value); in hmac_compute()
205 result[i] = ((uint8_t *)hash_value)[i]; in hmac_compute()
208 octet_string_hex_string((uint8_t *)hash_value, tag_len)); in hmac_compute()
/external/mesa3d/src/mesa/program/
Dhash_table.c114 const unsigned hash_value = (*ht->hash)(key); in get_node() local
115 const unsigned bucket = hash_value % ht->num_buckets; in get_node()
140 const unsigned hash_value = (*ht->hash)(key); in hash_table_insert() local
141 const unsigned bucket = hash_value % ht->num_buckets; in hash_table_insert()
155 const unsigned hash_value = (*ht->hash)(key); in hash_table_replace() local
156 const unsigned bucket = hash_value % ht->num_buckets; in hash_table_replace()
/external/v8/src/compiler/
Djs-operator.h43 size_t hash_value(VectorSlotPair const&);
72 size_t hash_value(CallConstructParameters const&);
109 friend size_t hash_value(CallFunctionParameters const& p) { in hash_value() function
121 size_t hash_value(CallFunctionParameters const&);
146 size_t hash_value(CallRuntimeParameters const&);
175 size_t hash_value(ContextAccess const&);
203 size_t hash_value(NamedAccess const&);
232 size_t hash_value(LoadGlobalParameters const&);
261 size_t hash_value(StoreGlobalParameters const&);
286 size_t hash_value(PropertyAccess const&);
[all …]
Dsimplified-operator.h31 size_t hash_value(BaseTaggedness);
52 size_t hash_value(BufferAccess);
76 size_t hash_value(FieldAccess const&);
100 size_t hash_value(ElementAccess const&);
111 size_t hash_value(CheckFloat64HoleMode);
122 size_t hash_value(CheckTaggedHoleMode);
Dcommon-operator.h39 inline size_t hash_value(BranchHint hint) { return static_cast<size_t>(hint); } in hash_value() function
49 size_t hash_value(DeoptimizeKind kind);
59 size_t hash_value(IfExceptionHint hint);
81 size_t hash_value(SelectParameters const& p);
140 size_t hash_value(RelocatablePtrConstantInfo const& p);
147 size_t hash_value(RegionObservability);
Djs-operator.cc38 size_t hash_value(VectorSlotPair const& p) { in hash_value() function
67 size_t hash_value(CallConstructParameters const& p) { in hash_value() function
107 size_t hash_value(CallRuntimeParameters const& p) { in hash_value() function
143 size_t hash_value(ContextAccess const& access) { in hash_value() function
173 size_t hash_value(NamedAccess const& p) { in hash_value() function
214 size_t hash_value(PropertyAccess const& p) { in hash_value() function
233 size_t hash_value(LoadGlobalParameters const& p) { in hash_value() function
263 size_t hash_value(StoreGlobalParameters const& p) { in hash_value() function
299 size_t hash_value(CreateArrayParameters const& p) { in hash_value() function
330 size_t hash_value(CreateClosureParameters const& p) { in hash_value() function
[all …]
Dframe-states.cc14 size_t hash_value(OutputFrameStateCombine const& sc) { in hash_value() function
44 size_t hash_value(FrameStateInfo const& info) { in hash_value() function
Dframe-states.h64 friend size_t hash_value(OutputFrameStateCombine const&);
149 size_t hash_value(FrameStateInfo const&);
Dsimplified-operator.cc16 size_t hash_value(BaseTaggedness base_taggedness) { in hash_value() function
65 size_t hash_value(BufferAccess access) { in hash_value() function
104 size_t hash_value(FieldAccess const& access) { in hash_value() function
143 size_t hash_value(ElementAccess const& access) { in hash_value() function
175 size_t hash_value(CheckFloat64HoleMode mode) { in hash_value() function
195 size_t hash_value(CheckTaggedHoleMode mode) { in hash_value() function
Dtype-hints.h52 friend size_t hash_value(BinaryOperationHints const& hints) { in hash_value() function
102 friend size_t hash_value(CompareOperationHints const& hints) { in hash_value() function
/external/selinux/policycoreutils/newrole/
Dhashtab.c14 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()
Dhashtab.h36 unsigned int (*hash_value) (struct hashtab_val * h, hashtab_key_t key); /* hash function */ member
54 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,
/external/selinux/libsepol/src/
Dhashtab.c35 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/llvm/include/llvm/ADT/
DHashing.h95 friend size_t hash_value(const hash_code &code) { return code.value; } in hash_value() function
107 hash_value(T value);
112 template <typename T> hash_code hash_value(const T *ptr);
116 hash_code hash_value(const std::pair<T, U> &arg);
120 hash_code hash_value(const std::basic_string<T> &arg);
376 using ::llvm::hash_value;
377 return hash_value(value);
634 hash_value(T value) {
640 template <typename T> hash_code hash_value(const T *ptr) {
648 hash_code hash_value(const std::pair<T, U> &arg) {
[all …]
/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() function
165 friend hash_code hash_value(const Matrix &);
380 inline hash_code hash_value(const Matrix &M) { in hash_value() function
407 inline hash_code hash_value(const MDVector<Metadata> &V) { in hash_value() function
408 return hash_value(static_cast<const Vector&>(V)); in hash_value()
422 inline hash_code hash_value(const MDMatrix<Metadata> &M) { in hash_value() function
423 return hash_value(static_cast<const Matrix&>(M)); in hash_value()
/external/libchrome/crypto/
Dsymmetric_key_win.cc274 std::vector<BYTE> hash_value(hash_size); in ComputePBKDF2Block() local
277 ok = CryptGetHashParam(safe_hash, HP_HASHVAL, &hash_value[0], &size, 0); in ComputePBKDF2Block()
281 memcpy(output_buf, &hash_value[0], hash_size); in ComputePBKDF2Block()
292 ok = CryptHashData(safe_hash, &hash_value[0], hash_size, 0); in ComputePBKDF2Block()
297 ok = CryptGetHashParam(safe_hash, HP_HASHVAL, &hash_value[0], &size, 0); in ComputePBKDF2Block()
302 output_buf[i] ^= hash_value[i]; in ComputePBKDF2Block()
/external/selinux/libsepol/include/sepol/policydb/
Dhashtab.h39 unsigned int (*hash_value) (struct hashtab_val * h, hashtab_key_t key); /* hash function */ member
51 extern hashtab_t hashtab_create(unsigned int (*hash_value) (hashtab_t h,
/external/v8/test/unittests/base/
Dfunctional-unittest.cc69 EXPECT_EQ(h(v), hash_value(v)); in TYPED_TEST()
103 EXPECT_EQ(hash_range(values, values + arraysize(values)), hash_value(values)); in TYPED_TEST()
141 size_t hash_value(Foo const& v) { return hash_combine(v.x, v.y); } in hash_value() function
/external/srtp/crypto/include/
Dsha1.h106 sha1_core(const uint32_t M[16], uint32_t hash_value[5]);

123