Macro snarkvm_algorithms::overhead
source · macro_rules! overhead { ($x:expr, $num_bits:expr) => { ... }; }
Expand description
A macro for computing ceil(log2(x))+1 for a field element x. The num_bits param is expected to be a vector to which the BE bits can be written; it is not created here, as reusing it allows us to avoid a lot of allocations.