Home
last modified time | relevance | path

Searched refs:hasher (Results 1 – 25 of 58) 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/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.h32 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
/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.h32 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
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/flutter/skia/third_party/externals/wuffs/lib/rac/
Dexample_test.go41 hasher := adler32.New()
42 hasher.Write([]byte(src))
51 enc = hasher.Sum(enc) // Adler-32 hash.
108 hasher := adler32.New()
109 hasher.Write(dict)
118 encodedDict = hasher.Sum(encodedDict)
/third_party/flutter/skia/third_party/externals/wuffs/lib/zlibcut/
Dzlibcut.go91 hasher := adler32.New()
93 w = hasher
95 w = io.MultiWriter(w, hasher)
107 hash := hasher.Sum32()
/third_party/rust/crates/serde/test_suite/tests/macros/
Dmod.rs35 ($hasher:ident @ $($value:expr),+) => {{
37 let mut set = HashSet::with_hasher(BuildHasherDefault::<$hasher>::default());
52 ($hasher:ident @ $($key:expr => $value:expr),+) => {{
54 let mut map = HashMap::with_hasher(BuildHasherDefault::<$hasher>::default());
/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/flutter/engine/flutter/lib/ui/plugins/
Dcallback_cache.cc51 std::hash<std::string> hasher; in GetCallbackHandle() local
52 int64_t hash = hasher(name); in GetCallbackHandle()
53 hash += hasher(class_name); in GetCallbackHandle()
54 hash += hasher(library_path); in GetCallbackHandle()
/third_party/flutter/skia/third_party/externals/wuffs/std/adler32/
Dcommon_adler32.wuffs16 pub struct hasher?(
21 pub func hasher.update!(x slice base.u8) base.u32 {
/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()

123