def significant_bits
import stelliferous@0.0.2.0/tensor.bend as Tensorimport Base
import stelliferous@0.0.2.0/storage_buffer.bend as Storage
72# Bits of value, counted by tail recursion. Storage.bit_length is not tail
73# recursive, and a non-tail recursive callee turns the calling chain into
74# worklist dispatch: measured allocation of 2^20 floats took twice as long.
75def significant_bits(remaining: Nat,+value: U32,+bits: Nat,zero: Bool) -> Nat:
76 Storage.significant_bits(remaining,value,bits,zero)