Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanting Zhang committed Feb 9, 2024
1 parent 325c29d commit 02d059a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions benches/grumpkin_msm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ fn criterion_benchmark(c: &mut Criterion) {
scalars.reverse();
group.bench_function(format!("2**{} points rev", bench_npow), |b| {
b.iter(|| {
let _ = grumpkin_msm::bn256::msm_aux(&points, &scalars, Some(indices.as_slice()));
let _ = grumpkin_msm::bn256::msm_aux(
&points,
&scalars,
Some(indices.as_slice()),
);
})
});

Expand All @@ -88,9 +92,7 @@ fn criterion_benchmark(c: &mut Criterion) {
|b| {
b.iter(|| {
let _ = grumpkin_msm::bn256::with_context_aux(
&context,
&scalars,
None,
&context, &scalars, None,
);
})
},
Expand All @@ -102,7 +104,9 @@ fn criterion_benchmark(c: &mut Criterion) {
|b| {
b.iter(|| {
let _ = grumpkin_msm::bn256::with_context_aux(
&context, &scalars, Some(indices.as_slice()),
&context,
&scalars,
Some(indices.as_slice()),
);
})
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ macro_rules! impl_msm {

/// An indexed MSM. We do not check if the indices are valid, i.e.
/// for i in 0..nscalars, 0 <= indices[i] < npoints
///
///
/// Also, this version carries a performance penalty that all the
/// points must be moved onto the GPU once instead of in batches.
/// If the points are to be reused, please use the [`MSMContext`] API
Expand Down
2 changes: 1 addition & 1 deletion src/pasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ macro_rules! impl_pasta {

/// An indexed MSM. We do not check if the indices are valid, i.e.
/// for i in 0..nscalars, 0 <= indices[i] < npoints
///
///
/// Also, this version carries a performance penalty that all the
/// points must be moved onto the GPU once instead of in batches.
/// If the points are to be reused, please use the [`MSMContext`] API
Expand Down

0 comments on commit 02d059a

Please sign in to comment.