(layout: &Layout)
| 12 | // NOTE: Blocksize must be a power of two (2). |
| 13 | |
| 14 | fn lsidx(layout: &Layout) -> Option<usize> |
| 15 | { |
| 16 | let req_blksize = layout.size().max(layout.align()); |
| 17 | BLKSIZES.iter().position(|&s| s >= req_blksize) |
| 18 | } |
| 19 | |
| 20 | // Pair an appropriate blocksize for the specific layout in question. This returns an index into BLKSIZES. |
| 21 | struct ListNode |