Home
last modified time | relevance | path

Searched refs:AHasher (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/ahash/src/
Dhash_quality_test.rs324 test_single_bit_flip(|| AHasher::new_with_keys(0, 0)) in fallback_single_bit_flip()
329 test_single_key_bit_flip(AHasher::new_with_keys) in fallback_single_key_bit_flip()
334 test_all_bytes_matter(|| AHasher::new_with_keys(0, 0)); in fallback_all_bytes_matter()
339 test_no_pair_collisions(|| AHasher::new_with_keys(0, 0)); in fallback_test_no_pair_collisions()
344 test_no_full_collisions(|| AHasher::new_with_keys(12345, 67890)); in fallback_test_no_full_collisions()
349 test_keys_change_output(AHasher::new_with_keys); in fallback_keys_change_output()
354 test_input_affect_every_byte(AHasher::new_with_keys); in fallback_input_affect_every_byte()
361 test_keys_affect_every_byte(0, |a, b| AHasher::new_with_keys(a ^ b, a)); in fallback_keys_affect_every_byte()
362 test_keys_affect_every_byte("", |a, b| AHasher::new_with_keys(a ^ b, a)); in fallback_keys_affect_every_byte()
363 test_keys_affect_every_byte((0, 0), |a, b| AHasher::new_with_keys(a ^ b, a)); in fallback_keys_affect_every_byte()
[all …]
Dfallback_hash.rs25 pub struct AHasher { struct
31 impl AHasher { argument
35 pub fn new_with_keys(key1: u128, key2: u128) -> AHasher { in new_with_keys() argument
39 AHasher { in new_with_keys()
48 pub(crate) fn from_random_state(rand_state: &RandomState) -> AHasher { in from_random_state() argument
49 AHasher { in from_random_state()
110 impl HasherExt for AHasher { implementation
126 impl Hasher for AHasher { implementation
207 let mut hasher = AHasher::new_with_keys(0, 0); in test_hash()
211 let mut hasher = AHasher::new_with_keys(0, 0); in test_hash()
Dlib.rs52 pub use crate::aes_hash::AHasher;
55 pub use crate::fallback_hash::AHasher;
88 impl Default for AHasher { implementation
114 fn default() -> AHasher { in default()
173 let mut map = HashMap::<u32, u64, BuildHasherDefault<AHasher>>::default(); in test_default_builder()
192 let _ = AHasher::new_with_keys(1234, 5678); in test_ahasher_construction()
Daes_hash.rs20 pub struct AHasher { struct
26 impl AHasher { argument
95 impl HasherExt for AHasher { implementation
114 impl Hasher for AHasher { implementation
247 let mut map = HashMap::<u32, u64, BuildHasherDefault<AHasher>>::default(); in test_builder()
254 let hasher_a = AHasher::default(); in test_default()
265 let hasher_b = AHasher::default(); in test_default()
Drandom_state.rs3 use crate::{AHasher};
113 let mut hasher = AHasher::from_random_state(&RandomState { k0, k1, k2, k3 });
160 type Hasher = AHasher;
191 fn build_hasher(&self) -> AHasher { in build_hasher() argument
192 AHasher::from_random_state(self) in build_hasher()
Dspecialize.rs280 let shortened = u64::get_hash(&0, AHasher::new_with_keys(1, 2)); in test_specialized_invoked()
281 let mut hasher = AHasher::new_with_keys(1, 2); in test_specialized_invoked()
289 let hasher = || AHasher::new_with_keys(3, 2); in test_input_processed()
315 let hasher = || AHasher::new_with_keys(3, 2); in test_ref_independent()
326 let hasher = || AHasher::new_with_keys(3, 2); in test_ref_independent()
/external/rust/crates/ahash/tests/
Dnopanic.rs1 use ahash::{AHasher, CallHasher, RandomState};
11 let mut hasher1 = AHasher::new_with_keys(1, 2); in hash_test_final()
12 let mut hasher2 = AHasher::new_with_keys(3, 4); in hash_test_final()
26 let hasher1 = AHasher::new_with_keys(1, 2); in hash_test_specialize()
27 let hasher2 = AHasher::new_with_keys(1, 2); in hash_test_specialize()
Dmap_tests.rs6 use ahash::{AHasher, CallHasher};
161 let hasher = || AHasher::new_with_keys(123456789, 987654321); in test_bucket_distribution()
176 let mut hasher = AHasher::new_with_keys(1234, 5678); in ahash_vec()
/external/rust/crates/ahash/
DREADME.md35 use ahash::{AHasher, RandomState};