Home
last modified time | relevance | path

Searched refs:last_false_index (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs19 assert_eq!(bitmap.last_false_index(), Some(31)); in test_empty_bitmap_32()
32 assert_eq!(bitmap.last_false_index(), None); in test_empty_bitmap_32()
49 assert_eq!(bitmap.last_false_index(), Some(63)); in test_empty_bitmap_64()
62 assert_eq!(bitmap.last_false_index(), None); in test_empty_bitmap_64()
81 assert_eq!(bitmap.last_false_index(), Some(31)); in test_static_bitmap_32_first_1()
100 assert_eq!(bitmap.last_false_index(), Some(0)); in test_static_bitmap_32_first_1()
122 assert_eq!(bitmap.last_false_index(), Some(31)); in test_static_bitmap_32_middle_1()
142 assert_eq!(bitmap.last_false_index(), Some(15)); in test_static_bitmap_32_middle_1()
164 assert_eq!(bitmap.last_false_index(), Some(30)); in test_static_bitmap_32_last_1()
184 assert_eq!(bitmap.last_false_index(), Some(31)); in test_static_bitmap_32_last_1()
[all …]
H A Dalloc-bitmap.rs19 assert_eq!(bitmap.last_false_index(), Some(31)); in test_empty_bitmap_32()
32 assert_eq!(bitmap.last_false_index(), None); in test_empty_bitmap_32()
49 assert_eq!(bitmap.last_false_index(), Some(63)); in test_empty_bitmap_64()
62 assert_eq!(bitmap.last_false_index(), None); in test_empty_bitmap_64()
81 assert_eq!(bitmap.last_false_index(), Some(31)); in test_alloc_bitmap_32_first_1()
100 assert_eq!(bitmap.last_false_index(), Some(0)); in test_alloc_bitmap_32_first_1()
122 assert_eq!(bitmap.last_false_index(), Some(31)); in test_alloc_bitmap_32_middle_1()
142 assert_eq!(bitmap.last_false_index(), Some(15)); in test_alloc_bitmap_32_middle_1()
164 assert_eq!(bitmap.last_false_index(), Some(30)); in test_alloc_bitmap_32_last_1()
184 assert_eq!(bitmap.last_false_index(), Some(31)); in test_alloc_bitmap_32_last_1()
[all …]
/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs100 pub(crate) fn last_false_index(&self, n: usize, data: &[T]) -> Option<usize> { in last_false_index() method
112 if let Some(bit) = <T as BitOps>::last_false_index(&last_element) { in last_false_index()
117 if let Some(bit) = <T as BitOps>::last_false_index(element) { in last_false_index()
203 if let Some(bit) = <T as BitOps>::last_false_index(element) { in prev_false_index()
H A Dalloc_bitmap.rs68 fn last_false_index(&self) -> Option<usize> { in last_false_index() method
69 self.core.last_false_index(self.elements, &self.data) in last_false_index()
H A Dstatic_bitmap.rs79 fn last_false_index(&self) -> Option<usize> { in last_false_index() function
80 self.core.last_false_index(N, &self.data) in last_false_index()
H A Dtraits.rs14 fn last_false_index(bits: &Self) -> Option<usize>; in last_false_index() method
87 fn last_false_index(bits: &Self) -> Option<usize> {
284 fn last_false_index(&self) -> Option<usize>; in last_false_index() method