Skip to content

Commit

Permalink
Style consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dtebbs committed Oct 4, 2021
1 parent bfa074f commit 903c840
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libfqfft/evaluation_domain/domains/basic_radix2_domain.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bool basic_radix2_domain<FieldT>::valid_for_size(const size_t m)
return false;
}

if( get_root_of_unity_will_throw<FieldT>(m) )
if (get_root_of_unity_will_throw<FieldT>(m))
return false;

return true;
Expand Down
4 changes: 2 additions & 2 deletions libfqfft/evaluation_domain/domains/extended_radix2_domain.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace libfqfft {
template<typename FieldT>
bool extended_radix2_domain<FieldT>::valid_for_size(const size_t m)
{
if ( m <= 1 )
if (m <= 1)
return false;

// Will `get_root_of_unity` throw?
Expand All @@ -34,7 +34,7 @@ bool extended_radix2_domain<FieldT>::valid_for_size(const size_t m)

size_t small_m = m / 2;

if( get_root_of_unity_will_throw<FieldT>(small_m) )
if (get_root_of_unity_will_throw<FieldT>(small_m))
return false;

return true;
Expand Down
8 changes: 4 additions & 4 deletions libfqfft/evaluation_domain/domains/step_radix2_domain.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace libfqfft {
template<typename FieldT>
bool step_radix2_domain<FieldT>::valid_for_size(const size_t m)
{
if ( m <= 1 )
if (m <= 1)
return false;

const size_t big_m = 1ul<<(libff::log2(m)-1);
Expand All @@ -30,11 +30,11 @@ bool step_radix2_domain<FieldT>::valid_for_size(const size_t m)
return false;

// omega
if( get_root_of_unity_will_throw<FieldT>(1ul<<libff::log2(m)) )
if (get_root_of_unity_will_throw<FieldT>(1ul<<libff::log2(m)))
return false;

// small_omega
if( get_root_of_unity_will_throw<FieldT>(1ul<<libff::log2(small_m)) )
if (get_root_of_unity_will_throw<FieldT>(1ul<<libff::log2(small_m)))
return false;

return true;
Expand All @@ -53,7 +53,7 @@ step_radix2_domain<FieldT>::step_radix2_domain(const size_t m) : evaluation_doma

try { omega = libff::get_root_of_unity<FieldT>(1ul<<libff::log2(m)); }
catch (const std::invalid_argument& e) { throw DomainSizeException(e.what()); }

big_omega = omega.squared();
small_omega = libff::get_root_of_unity<FieldT>(small_m);
}
Expand Down

0 comments on commit 903c840

Please sign in to comment.