Searched refs:next_false_index (Results 1 – 7 of 7) sorted by relevance
/DragonOS/kernel/crates/bitmap/tests/ |
H A D | static-bitmap.rs | 21 assert_eq!(bitmap.next_false_index(0), Some(1)); in test_empty_bitmap_32() 34 assert_eq!(bitmap.next_false_index(0), None); in test_empty_bitmap_32() 51 assert_eq!(bitmap.next_false_index(0), Some(1)); in test_empty_bitmap_64() 64 assert_eq!(bitmap.next_false_index(0), None); in test_empty_bitmap_64() 83 assert_eq!(bitmap.next_false_index(0), Some(1)); in test_static_bitmap_32_first_1() 91 assert_eq!(bitmap.next_false_index(2), Some(3)); in test_static_bitmap_32_first_1() 102 assert_eq!(bitmap.next_false_index(0), None); in test_static_bitmap_32_first_1() 125 assert_eq!(bitmap.next_false_index(15), Some(16)); in test_static_bitmap_32_middle_1() 133 assert_eq!(bitmap.next_false_index(2), Some(3)); in test_static_bitmap_32_middle_1() 144 assert_eq!(bitmap.next_false_index(1), Some(15)); in test_static_bitmap_32_middle_1() [all …]
|
H A D | alloc-bitmap.rs | 21 assert_eq!(bitmap.next_false_index(0), Some(1)); in test_empty_bitmap_32() 34 assert_eq!(bitmap.next_false_index(0), None); in test_empty_bitmap_32() 51 assert_eq!(bitmap.next_false_index(0), Some(1)); in test_empty_bitmap_64() 64 assert_eq!(bitmap.next_false_index(0), None); in test_empty_bitmap_64() 83 assert_eq!(bitmap.next_false_index(0), Some(1)); in test_alloc_bitmap_32_first_1() 91 assert_eq!(bitmap.next_false_index(2), Some(3)); in test_alloc_bitmap_32_first_1() 102 assert_eq!(bitmap.next_false_index(0), None); in test_alloc_bitmap_32_first_1() 125 assert_eq!(bitmap.next_false_index(15), Some(16)); in test_alloc_bitmap_32_middle_1() 133 assert_eq!(bitmap.next_false_index(2), Some(3)); in test_alloc_bitmap_32_middle_1() 144 assert_eq!(bitmap.next_false_index(1), Some(15)); in test_alloc_bitmap_32_middle_1() [all …]
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | alloc_bitmap.rs | 78 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index() method 79 self.core.next_false_index(self.elements, &self.data, index) in next_false_index()
|
H A D | static_bitmap.rs | 89 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index() function 90 self.core.next_false_index(N, &self.data, index) in next_false_index()
|
H A D | traits.rs | 16 fn next_false_index(bits: &Self, index: usize) -> Option<usize>; in next_false_index() method 112 fn next_false_index(bits: &Self, index: usize) -> Option<usize> { 290 fn next_false_index(&self, index: usize) -> Option<usize>; in next_false_index() method
|
H A D | bitmap_core.rs | 149 pub(crate) fn next_false_index(&self, n: usize, data: &[T], index: usize) -> Option<usize> { in next_false_index() method 158 if let Some(bit) = <T as BitOps>::next_false_index(element, bit_index) { in next_false_index()
|
/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 65 .next_false_index(cpu.data() as usize) in next_zero_index()
|