Home
last modified time | relevance | path

Searched refs:next_false_index (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs21 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 Dalloc-bitmap.rs21 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 Dalloc_bitmap.rs78 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 Dstatic_bitmap.rs89 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 Dtraits.rs16 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 Dbitmap_core.rs149 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 Dcpumask.rs65 .next_false_index(cpu.data() as usize) in next_zero_index()