mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
bitvec all the things
This commit is contained in:
parent
b0ceaf0372
commit
452447232f
3 changed files with 88 additions and 67 deletions
|
@ -40,6 +40,11 @@ impl ReferenceMatrix {
|
|||
self.bitvec[index]
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn get_row_col(&self, row: usize, col: usize) -> bool {
|
||||
self.bitvec[row * self.length + col]
|
||||
}
|
||||
|
||||
pub fn is_recursive(&self, index: usize) -> bool {
|
||||
let mut scheduled = self.row_slice(index).to_bitvec();
|
||||
let mut visited = self.row_slice(index).to_bitvec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue