Skip to content

Commit

Permalink
Use index util funtions outside of crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
alonh5 committed Jul 10, 2024
1 parent 496323f commit 040e43b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/prover/src/core/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,18 @@ pub(crate) fn bit_reverse_index(i: usize, log_size: u32) -> usize {
/// Returns the index of the previous element in a bit reversed
/// [super::poly::circle::CircleEvaluation] of log size `eval_log_size` relative to a smaller domain
/// of size `domain_log_size`.
pub(crate) fn previous_bit_reversed_circle_domain_index(
pub fn previous_bit_reversed_circle_domain_index(
i: usize,
domain_log_size: u32,
eval_log_size: u32,
) -> usize {
offset_bit_reversed_circle_domain_index(i, domain_log_size, eval_log_size, -1)
}

pub(crate) fn offset_bit_reversed_circle_domain_index(
/// Returns the index of the offset element in a bit reversed
/// [super::poly::circle::CircleEvaluation] of log size `eval_log_size` relative to a smaller domain
/// of size `domain_log_size`.
pub fn offset_bit_reversed_circle_domain_index(
i: usize,
domain_log_size: u32,
eval_log_size: u32,
Expand Down

0 comments on commit 040e43b

Please sign in to comment.