Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs97 let bit_idx = idx % 64; in is_allocated() localVariable
98 (self[base_idx].load(Ordering::Relaxed) & (1 << bit_idx)) > 0 in is_allocated()
105 let bit_idx = idx % 64; in set_bit() localVariable
106 self[base_idx].fetch_or(1 << bit_idx, Ordering::Relaxed); in set_bit()
113 let bit_idx = idx % 64; in clear_bit() localVariable
114 self[base_idx].fetch_and(!(1 << bit_idx), Ordering::Relaxed); in clear_bit()