Add ListNode type and BLOCK_SIZES constant

This commit is contained in:
Philipp Oppermann
2020-01-20 14:02:57 +01:00
parent 7381e11f3c
commit 4f234b67ef

View File

@@ -1 +1,9 @@
/// The block sizes to use.
///
/// The sizes must each be power of 2 because they are also used as
/// the block alignment (alignments must be always powers of 2).
const BLOCK_SIZES: &[usize] = &[8, 16, 32, 64, 128, 256, 512, 1024, 2048];
struct ListNode {
next: Option<&'static mut ListNode>,
}