Byte aligned width for bit-width
(bit_width: u32)
| 23 | |
| 24 | /// Byte aligned width for bit-width |
| 25 | pub fn byte_width(bit_width: u32) -> u32 { |
| 26 | if byte_aligned(bit_width) { |
| 27 | bit_width / 8 |
| 28 | } else { |
| 29 | (bit_width / 8) + 1 |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | #[derive(Clone, Debug)] |
| 34 | pub struct AddressBlockMemoryInfo { |
no test coverage detected