pub(super) const fn log_data_meta_ratio(
metadata_spec: &SideMetadataSpec,
) -> usizeExpand description
Return the base-2 logarithm of the ratio of data bits and metadata bits per region.
Suppose a memory region has data_bits bits of data, and meta_bits bits of metadata for
metadata_spec, and the result of log_data_meta_ratio(metadata_spec) is shift, then
data_bits >> shift == meta_bitsmeta_bits << shift == data_bits