../../.cargo/katex-header.html

Crate plonky2_util

Crate plonky2_util 

Source

Functionsยง

assume
bits_u64
branch_hint
Try to force Rust to emit a branch. Example: if x > 2 { y = foo(); branch_hint(); } else { y = bar(); } This function has no semantics. It is a hint only.
log2_ceil
Computes ceil(log_2(n)).
log2_strict
Computes log_2(n), panicking if n is not a power of two.
log_floor
Returns the largest integer i such that base**i <= n.
reverse_index_bits
Permutes arr such that each index is mapped to its reverse in binary.
reverse_index_bits_in_place