def allocation_depth
import stelliferous@0.0.2.0/storage_buffer.bend as StorageBufferimport Base
38# Positive requested lengths round to the next power-of-two capacity.
39# The caller establishes the machine allocation limit before calling Array.new.
40def allocation_depth(length: U32) -> Nat:
41 bit_length(32n,(length - 1 : U32))