Home
last modified time | relevance | path

Searched refs:hasher (Results 1 – 25 of 66) sorted by relevance

123

/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dhash.inl28 hash<T> hasher; local
29 return hasher(v.x);
36 hash<T> hasher; local
37 glm::detail::hash_combine(seed, hasher(v.x));
38 glm::detail::hash_combine(seed, hasher(v.y));
46 hash<T> hasher; local
47 glm::detail::hash_combine(seed, hasher(v.x));
48 glm::detail::hash_combine(seed, hasher(v.y));
49 glm::detail::hash_combine(seed, hasher(v.z));
57 hash<T> hasher; local
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dunordered_set_constructor_test.h51 using H = typename TypeParam::hasher; in TYPED_TEST_P()
52 H hasher; in TYPED_TEST_P() local
53 TypeParam m(123, hasher); in TYPED_TEST_P()
54 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P()
61 using H = typename TypeParam::hasher; in TYPED_TEST_P()
63 H hasher; in TYPED_TEST_P() local
65 TypeParam m(123, hasher, equal); in TYPED_TEST_P()
66 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P()
74 using H = typename TypeParam::hasher; in TYPED_TEST_P()
77 H hasher; in TYPED_TEST_P() local
[all …]
Dunordered_map_constructor_test.h50 using H = typename TypeParam::hasher; in TYPED_TEST_P()
51 H hasher; in TYPED_TEST_P() local
52 TypeParam m(123, hasher); in TYPED_TEST_P()
53 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P()
60 using H = typename TypeParam::hasher; in TYPED_TEST_P()
62 H hasher; in TYPED_TEST_P() local
64 TypeParam m(123, hasher, equal); in TYPED_TEST_P()
65 EXPECT_EQ(m.hash_function(), hasher); in TYPED_TEST_P()
73 using H = typename TypeParam::hasher; in TYPED_TEST_P()
76 H hasher; in TYPED_TEST_P() local
[all …]
Dhash_function_defaults_test.cc88 hash_default_hash<T> hasher; member
104 auto hash = this->hasher; in TYPED_TEST()
132 hash_default_hash<T> hasher; member
163 hash_default_hash<Base*> hasher; in TEST() local
167 EXPECT_NE(hasher(&base), hasher(&derived)); in TEST()
168 EXPECT_EQ(hasher(static_cast<Base*>(&derived)), hasher(&derived)); in TEST()
171 EXPECT_EQ(hasher(static_cast<Base*>(dp.get())), hasher(dp)); in TEST()
176 hash_default_hash<Func> hasher; in TEST() local
180 EXPECT_EQ(hasher(p1), hasher(p1)); in TEST()
183 EXPECT_NE(hasher(p1), hasher(p2)); in TEST()
[all …]
Draw_hash_set.h680 using hasher = Hash;
857 std::is_nothrow_default_constructible<hasher>::value&&
861 explicit raw_hash_set(size_t bucket_count, const hasher& hash = hasher(),
872 raw_hash_set(size_t bucket_count, const hasher& hash,
877 : raw_hash_set(bucket_count, hasher(), key_equal(), alloc) {}
880 : raw_hash_set(0, hasher(), key_equal(), alloc) {}
884 const hasher& hash = hasher(), const key_equal& eq = key_equal(),
893 const hasher& hash, const allocator_type& alloc)
899 : raw_hash_set(first, last, bucket_count, hasher(), key_equal(), alloc) {}
903 : raw_hash_set(first, last, 0, hasher(), key_equal(), alloc) {}
[all …]
/third_party/rust/crates/rust-openssl/openssl/src/
Dsha.rs359 let mut hasher = Sha1::new(); in struct_1() localVariable
360 hasher.update(b"a"); in struct_1()
361 hasher.update(b"bc"); in struct_1()
362 assert_eq!(hex::encode(hasher.finish()), expected); in struct_1()
370 let mut hasher = Sha1::new(); in cloning_allows_incremental_hashing() localVariable
371 hasher.update(b"a"); in cloning_allows_incremental_hashing()
373 let mut incr_hasher = hasher.clone(); in cloning_allows_incremental_hashing()
377 assert_ne!(hex::encode(hasher.finish()), expected); in cloning_allows_incremental_hashing()
393 let mut hasher = Sha224::new(); in struct_224() localVariable
394 hasher.update(b"a"); in struct_224()
[all …]
/third_party/node/deps/brotli/c/enc/
Dhash.h393 static BROTLI_INLINE void HasherInit(Hasher* hasher) { in HasherInit() argument
394 hasher->common.extra = NULL; in HasherInit()
397 static BROTLI_INLINE void DestroyHasher(MemoryManager* m, Hasher* hasher) { in DestroyHasher() argument
398 if (hasher->common.extra == NULL) return; in DestroyHasher()
399 BROTLI_FREE(m, hasher->common.extra); in DestroyHasher()
402 static BROTLI_INLINE void HasherReset(Hasher* hasher) { in HasherReset() argument
403 hasher->common.is_prepared_ = BROTLI_FALSE; in HasherReset()
408 switch (params->hasher.type) { in HasherSize()
420 static BROTLI_INLINE void HasherSetup(MemoryManager* m, Hasher* hasher, in HasherSetup() argument
424 if (hasher->common.extra == NULL) { in HasherSetup()
[all …]
Dbackward_references_hq.h30 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
37 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
84 const int* dist_cache, Hasher* hasher, ZopfliNode* nodes);
Dbackward_references.c126 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in BrotliCreateBackwardReferences() argument
128 switch (params->hasher.type) { in BrotliCreateBackwardReferences()
133 literal_context_lut, params, hasher, dist_cache, \ in BrotliCreateBackwardReferences()
Dbackward_references_hq.c660 const int* dist_cache, Hasher* hasher, ZopfliNode* nodes) { in BrotliZopfliComputeShortestPath() argument
687 num_matches = FindAllMatchesH10(&hasher->privat._H10, in BrotliZopfliComputeShortestPath()
705 StoreRangeH10(&hasher->privat._H10, in BrotliZopfliComputeShortestPath()
725 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in BrotliCreateZopfliBackwardReferences() argument
732 dist_cache, hasher, nodes); in BrotliCreateZopfliBackwardReferences()
742 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in BrotliCreateHqZopfliBackwardReferences() argument
779 num_found_matches = FindAllMatchesH10(&hasher->privat._H10, in BrotliCreateHqZopfliBackwardReferences()
797 StoreRangeH10(&hasher->privat._H10, in BrotliCreateHqZopfliBackwardReferences()
Dbackward_references_inc.h14 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in EXPORT_FN()
16 HASHER()* privat = &hasher->privat.FN(_); in EXPORT_FN()
/third_party/skia/third_party/externals/brotli/c/enc/
Dhash.h393 static BROTLI_INLINE void HasherInit(Hasher* hasher) { in HasherInit() argument
394 hasher->common.extra = NULL; in HasherInit()
397 static BROTLI_INLINE void DestroyHasher(MemoryManager* m, Hasher* hasher) { in DestroyHasher() argument
398 if (hasher->common.extra == NULL) return; in DestroyHasher()
399 BROTLI_FREE(m, hasher->common.extra); in DestroyHasher()
402 static BROTLI_INLINE void HasherReset(Hasher* hasher) { in HasherReset() argument
403 hasher->common.is_prepared_ = BROTLI_FALSE; in HasherReset()
408 switch (params->hasher.type) { in HasherSize()
420 static BROTLI_INLINE void HasherSetup(MemoryManager* m, Hasher* hasher, in HasherSetup() argument
424 if (hasher->common.extra == NULL) { in HasherSetup()
[all …]
Dbackward_references_hq.h30 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
37 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
84 const int* dist_cache, Hasher* hasher, ZopfliNode* nodes);
Dbackward_references.c126 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in BrotliCreateBackwardReferences() argument
128 switch (params->hasher.type) { in BrotliCreateBackwardReferences()
133 literal_context_lut, params, hasher, dist_cache, \ in BrotliCreateBackwardReferences()
Dbackward_references_hq.c660 const int* dist_cache, Hasher* hasher, ZopfliNode* nodes) { in BrotliZopfliComputeShortestPath() argument
687 num_matches = FindAllMatchesH10(&hasher->privat._H10, in BrotliZopfliComputeShortestPath()
705 StoreRangeH10(&hasher->privat._H10, in BrotliZopfliComputeShortestPath()
725 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in BrotliCreateZopfliBackwardReferences() argument
732 dist_cache, hasher, nodes); in BrotliCreateZopfliBackwardReferences()
742 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in BrotliCreateHqZopfliBackwardReferences() argument
779 num_found_matches = FindAllMatchesH10(&hasher->privat._H10, in BrotliCreateHqZopfliBackwardReferences()
797 StoreRangeH10(&hasher->privat._H10, in BrotliCreateHqZopfliBackwardReferences()
Dbackward_references_inc.h14 Hasher* hasher, int* dist_cache, size_t* last_insert_len, in EXPORT_FN()
16 HASHER()* privat = &hasher->privat.FN(_); in EXPORT_FN()
/third_party/rust/crates/cxx/src/
Dhash.rs6 let mut hasher = std::collections::hash_map::DefaultHasher::new(); in hash() localVariable
8 let mut hasher = crate::sip::SipHasher13::new(); in hash() localVariable
10 Hash::hash(value, &mut hasher); in hash()
11 Hasher::finish(&hasher) as usize in hash()
/third_party/rust/crates/serde/test_suite/tests/macros/
Dmod.rs37 ($hasher:ident @ $($value:expr),+) => {{
39 let mut set = HashSet::with_hasher(BuildHasherDefault::<$hasher>::default());
54 ($hasher:ident @ $($key:expr => $value:expr),+) => {{
56 let mut map = HashMap::with_hasher(BuildHasherDefault::<$hasher>::default());
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkSafetyCriticalUtil.hpp85 std::hash<T> hasher; in hash_combine() local
86 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in hash_combine()
92 std::hash<T> hasher; in hash_combine() local
93 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in hash_combine()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dstl_type_traits.h110 absl::void_t<typename C::key_type, typename C::hasher,
112 : std::is_base_of<C, T<typename C::key_type, typename C::hasher,
120 typename C::hasher, typename C::key_equal,
123 typename C::hasher, typename C::key_equal,
187 absl::void_t<typename C::key_type, typename C::hasher,
190 C, T<typename C::key_type, typename C::hasher, typename C::key_equal,
197 typename C::hasher, typename C::key_equal,
200 typename C::hasher, typename C::key_equal,
/third_party/lzma/CPP/7zip/Compress/
DCodecExports.cpp283 static HRESULT CreateHasher2(UInt32 index, IHasher **hasher) in CreateHasher2() argument
286 *hasher = g_Hashers[index]->CreateHasher(); in CreateHasher2() local
287 if (*hasher) in CreateHasher2()
288 (*hasher)->AddRef(); in CreateHasher2()
354 Z7_COM7F_IMF(CHashers::CreateHasher(UInt32 index, IHasher **hasher))
356 return ::CreateHasher2(index, hasher);
/third_party/node/deps/npm/node_modules/@tufjs/models/dist/
Drole.js109 const hasher = crypto_1.default.createHash('sha256');
110 const pathHash = hasher.update(targetFilepath).digest('hex');
227 const hasher = crypto_1.default.createHash('sha256');
228 const hasherBuffer = hasher.update(targetFilepath).digest();
/third_party/rust/crates/cxx/syntax/
Dinstantiate.rs65 fn hash<H: Hasher>(&self, hasher: &mut H) { in hash()
66 self.rust.hash(hasher); in hash()
/third_party/lzma/CPP/7zip/Common/
DCreateCoder.cpp514 CMyComPtr<IHasher> &hasher) in CreateHasher() argument
524 hasher = codec.CreateHasher(); in CreateHasher()
534 if (!hasher && _externalCodecs) in CreateHasher()
541 return _externalCodecs->GetHashers->CreateHasher((UInt32)i, &hasher); in CreateHasher()
/third_party/rust/crates/syn/codegen/src/
Dhash.rs130 let hasher = match &node.data { in expand_impl() localVariable
139 fn hash<H>(&self, #hasher: &mut H) in expand_impl()

123