Skip to content

Commit

Permalink
printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanting Zhang committed Jan 11, 2024
1 parent eb51a89 commit bcbb512
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider/pasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ macro_rules! impl_traits {
fn vartime_multiscalar_mul(scalars: &[Self::ScalarExt], bases: &[Self::Affine]) -> Self {
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
if scalars.len() >= 128 {
let zero_count = scalars.par_iter().filter(|s|<$name::Scalar as ff::Field>::is_zero_vartime(s)).count();
eprintln!("zeros: {}, scalars: {}", zero_count, scalars.len());
grumpkin_msm::pasta::$name::msm(bases, scalars)
} else {
cpu_best_msm(bases, scalars)
Expand Down

0 comments on commit bcbb512

Please sign in to comment.