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 ifnis not a power of two. - log_
floor - Returns the largest integer
isuch thatbase**i <= n. - reverse_
index_ bits - Permutes
arrsuch that each index is mapped to its reverse in binary. - reverse_
index_ bits_ in_ place