Home
last modified time | relevance | path

Searched refs:bit_size (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs23 let element_index = index / T::bit_size(); in get()
24 let bit_index = index % T::bit_size(); in get()
37 let element_index = index / T::bit_size(); in set()
38 let bit_index = index % T::bit_size(); in set()
54 let mask = T::make_mask(n % T::bit_size()); in set_all()
65 return Some(i * T::bit_size() + b); in first_index()
76 return self.make_index(n, i * T::bit_size() + bit); in first_false_index()
87 return self.make_index(n, i * T::bit_size() + bit); in last_index()
105 let mut mask = T::make_mask(n % T::bit_size()); in last_false_index()
113 return self.make_index(n, (data.len() - 1) * T::bit_size() + bit); in last_false_index()
[all …]
H A Dtraits.rs24 fn bit_size() -> usize; in bit_size() method
186 fn bit_size() -> usize {