Skip to content

Commit

Permalink
Fix spell checker output
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-shterman committed Jan 30, 2025
1 parent 3ec02ae commit 0ae3d84
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-2.8.0/icicle/primitives/msm.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The MSM supports batch mode - running multiple MSMs in parallel. It's always bet
struct MSMConfig {
device_context::DeviceContext ctx; /**< Details related to the device such as its id and stream id. */
int points_size; /**< Number of points in the MSM. If a batch of MSMs needs to be computed, this should be
* a number of different points. So, if each MSM re-uses the same set of points, this
* a number of different points. So, if each MSM reuses the same set of points, this
* variable is set equal to the MSM size. And if every MSM uses a distinct set of
* points, it should be set to the product of MSM size and [batch_size](@ref
* batch_size). Default value: 0 (meaning it's equal to the MSM size). */
Expand Down
4 changes: 2 additions & 2 deletions examples/c++/polynomial-multiplication/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void incremental_values(scalar_t* res, uint32_t count)
}
}

// calcaulting polynomial multiplication A*B via NTT,pointwise-multiplication and INTT
// calculating polynomial multiplication A*B via NTT,pointwise-multiplication and INTT
// (1) allocate A,B on HOST. Randomize first half, zero second half
// (2) allocate A,B,Res on device
// (3) calc NTT for A and for B from host to device
Expand Down Expand Up @@ -99,4 +99,4 @@ int main(int argc, char** argv)
ntt_release_domain<scalar_t>();

return 0;
}
}
4 changes: 2 additions & 2 deletions icicle/backend/cpu/src/hash/cpu_poseidon2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ namespace icicle {
// function.
is_sponge = true;
if (config.batch != 1) {
ICICLE_LOG_ERROR << "The only suppoorted value of config.batch for sponge functions is 1.\n";
ICICLE_LOG_ERROR << "The only supported value of config.batch for sponge functions is 1.\n";
return eIcicleError::INVALID_ARGUMENT;
}
} // sponge function
Expand Down Expand Up @@ -324,7 +324,7 @@ namespace icicle {
for (int hasher_idx = 1; hasher_idx < sponge_nof_hashers; hasher_idx++) {
// The first output of the prev hasher is the first input of the current hasher.
// The T-1 new inputs of the current hasher should be added to the T-1 outputs of the
// prev hasher (starting fom index 1).
// prev hasher (starting from index 1).
for (int i = 1; i < T; i++) {
tmp_fields[i] = tmp_fields_tmp_ptr[i] + tmp_fields[i];
}
Expand Down
2 changes: 1 addition & 1 deletion icicle/tests/test_hash_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ TEST_F(HashApiTest, poseidon2_3_single_hasher)
}
} // poseidon2_3_single_hasher

// Test used to generate expected result of the nd hasher.
// Test used to generate expected result of any hasher ccording to the parameters inside.
TEST_F(HashApiTest, poseidon2_3_gen_hasher_expected_result_cpu_only)
{
#if FIELD_ID == BN254
Expand Down
2 changes: 1 addition & 1 deletion wrappers/rust/icicle-core/src/msm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub trait MSM<C: Curve> {
/// * `scalars` - scalar values `s1, s2, ..., sn`.
///
/// * `bases` - bases `P1, P2, ..., Pn`. The number of bases can be smaller than the number of scalars
/// in the case of batch MSM. In this case bases are re-used periodically. Alternatively, there can be more bases
/// in the case of batch MSM. In this case bases are reused periodically. Alternatively, there can be more bases
/// than scalars if precomputation has been performed, you need to set `cfg.precompute_factor` in that case.
///
/// * `cfg` - config used to specify extra arguments of the MSM.
Expand Down

0 comments on commit 0ae3d84

Please sign in to comment.