Skip to content

Commit

Permalink
Fix contract comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chiphogg committed Nov 12, 2024
1 parent a6953ca commit b4d39da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion au/code/au/utility/probable_primes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ struct NumberDecomposition {
};

//
// Express any odd `n` as `(2^s + d) + 1`, where `d` is odd.
// Express any positive `n` as `(2^s * d)`, where `d` is odd.
//
// Preconditions: `n` is positive.
constexpr NumberDecomposition decompose(uint64_t n) {
NumberDecomposition result{0u, n};
while (result.odd_remainder % 2u == 0u) {
Expand Down

0 comments on commit b4d39da

Please sign in to comment.