Skip to content

Commit

Permalink
multiexp update #157
Browse files Browse the repository at this point in the history
  • Loading branch information
vo-nil committed May 22, 2024
1 parent a0e078f commit 906f6af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/nil/crypto3/algebra/multiexp/policies.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ namespace nil {

if (bucket_nonzero[id]) {
#ifdef USE_MIXED_ADDITION
buckets[id] = buckets[id].mixed_add(bases[i]);
buckets[id].mixed_add(bases[i]);
#else
buckets[id] = buckets[id] + bases[i];
buckets[id] += bases[i];
#endif
} else {
buckets[id] = bases[i];
Expand All @@ -177,9 +177,9 @@ namespace nil {
if (bucket_nonzero[i]) {
if (running_sum_nonzero) {
#ifdef USE_MIXED_ADDITION
running_sum = running_sum.mixed_add(buckets[i]);
running_sum.mixed_add(buckets[i]);
#else
running_sum = running_sum + buckets[i];
running_sum += buckets[i];
#endif
} else {
running_sum = buckets[i];
Expand Down

0 comments on commit 906f6af

Please sign in to comment.