pub(super) const fn log_data_meta_ratio(
metadata_spec: &SideMetadataSpec,
) -> usize
Expand 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_bits
meta_bits << shift == data_bits