Skip to content

Commit

Permalink
test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Aug 30, 2024
1 parent c6bae6e commit 244ced0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,14 +503,15 @@ impl BlockedGroupIndexBuilder {
}
}

#[inline]
pub fn build(&self, packed_index: usize) -> BlockedGroupIndex {
let packed_index = packed_index as u64;
let block_id = ((packed_index & self.block_id_mask) >> 32) as u32;
let block_offset = packed_index & self.block_offset_mask;
// let block_id = ((packed_index & self.block_id_mask) >> 32) as u32;
// let block_offset = packed_index & self.block_offset_mask;

BlockedGroupIndex {
block_id,
block_offset,
block_id: 0,
block_offset: packed_index,
}
}
}
Expand Down

0 comments on commit 244ced0

Please sign in to comment.