Skip to content

Commit

Permalink
Use what seems to be an unoptimized version for better cross compilin…
Browse files Browse the repository at this point in the history
…g compatibility.

Fixes windows build (other oses need to be tested).
  • Loading branch information
FireMartZ committed Apr 23, 2018
1 parent 6eba16a commit 99f2bfa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/snark/src/algebra/fields/bigint.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bool bigint<n>::is_zero() const
template<mp_size_t n>
size_t bigint<n>::num_bits() const
{
/*

for (long long i = max_bits(); i >= 0; --i)
{
if (this->test_bit(i))
Expand All @@ -114,7 +114,7 @@ size_t bigint<n>::num_bits() const
}

return 0;
*/
/*
for (long long i = n-1; i >= 0; --i)
{
mp_limb_t x = this->data[i];
Expand All @@ -128,6 +128,7 @@ size_t bigint<n>::num_bits() const
}
}
return 0;
*/
}

template<mp_size_t n>
Expand Down

0 comments on commit 99f2bfa

Please sign in to comment.