Searched refs:last_index (Results 1 – 8 of 8) sorted by relevance
/DragonOS/kernel/crates/bitmap/tests/ |
H A D | static-bitmap.rs | 18 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_32() 31 assert_eq!(bitmap.last_index(), Some(31)); in test_empty_bitmap_32() 48 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_64() 61 assert_eq!(bitmap.last_index(), Some(63)); in test_empty_bitmap_64() 80 assert_eq!(bitmap.last_index(), Some(0)); in test_static_bitmap_32_first_1() 99 assert_eq!(bitmap.last_index(), Some(31)); in test_static_bitmap_32_first_1() 121 assert_eq!(bitmap.last_index(), Some(15)); in test_static_bitmap_32_middle_1() 141 assert_eq!(bitmap.last_index(), Some(31)); in test_static_bitmap_32_middle_1() 163 assert_eq!(bitmap.last_index(), Some(31)); in test_static_bitmap_32_last_1() 183 assert_eq!(bitmap.last_index(), Some(30)); in test_static_bitmap_32_last_1() [all …]
|
H A D | alloc-bitmap.rs | 18 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_32() 31 assert_eq!(bitmap.last_index(), Some(31)); in test_empty_bitmap_32() 48 assert_eq!(bitmap.last_index(), None); in test_empty_bitmap_64() 61 assert_eq!(bitmap.last_index(), Some(63)); in test_empty_bitmap_64() 80 assert_eq!(bitmap.last_index(), Some(0)); in test_alloc_bitmap_32_first_1() 99 assert_eq!(bitmap.last_index(), Some(31)); in test_alloc_bitmap_32_first_1() 121 assert_eq!(bitmap.last_index(), Some(15)); in test_alloc_bitmap_32_middle_1() 141 assert_eq!(bitmap.last_index(), Some(31)); in test_alloc_bitmap_32_middle_1() 163 assert_eq!(bitmap.last_index(), Some(31)); in test_alloc_bitmap_32_last_1() 183 assert_eq!(bitmap.last_index(), Some(30)); in test_alloc_bitmap_32_last_1() [all …]
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | static_bitmap.rs | 74 fn last_index(&self) -> Option<usize> { in last_index() function 75 self.core.last_index(N, &self.data) in last_index()
|
H A D | alloc_bitmap.rs | 63 fn last_index(&self) -> Option<usize> { in last_index() method 64 self.core.last_index(self.elements, &self.data) in last_index()
|
H A D | traits.rs | 13 fn last_index(bits: &Self) -> Option<usize>; in last_index() method 78 fn last_index(bits: &Self) -> Option<usize> { 276 fn last_index(&self) -> Option<usize>; in last_index() method
|
H A D | bitmap_core.rs | 84 pub(crate) fn last_index(&self, n: usize, data: &[T]) -> Option<usize> { in last_index() method 86 if let Some(bit) = <T as BitOps>::last_index(element) { in last_index() 185 if let Some(bit) = <T as BitOps>::last_index(element) { in prev_index()
|
/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 51 .last_index() in last()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | entry.rs | 2232 last_index: u8, field 2259 last_index: start_index, in new() 2265 return self.last_index + 1; in num_entries() 2278 n if n == self.last_index => { in next()
|