Crate plonky2_util
source ·Functions
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.
Computes
ceil(log_2(n))
.Computes
log_2(n)
, panicking if n
is not a power of two.Returns the largest integer
i
such that base**i <= n
.Permutes
arr
such that each index is mapped to its reverse in binary.