Searched refs:last_false_index (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/crates/bitmap/tests/ |
H A D | static-bitmap.rs | 19 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 D | alloc-bitmap.rs | 19 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 D | bitmap_core.rs | 100 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 D | alloc_bitmap.rs | 68 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 D | static_bitmap.rs | 79 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 D | traits.rs | 14 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
|