Skip to content

Commit

Permalink
Drop to_words() returning std::array
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Mar 19, 2021
1 parent 51b50e4 commit 80cfa34
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/intx/intx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,6 @@ inline constexpr unsigned clz(const uint<N>& x) noexcept
return clz(x[s - 1]) + (num_words - s) * 64;
}

template <typename Word, typename Int>
std::array<Word, sizeof(Int) / sizeof(Word)> to_words(Int x) noexcept
{
std::array<Word, sizeof(Int) / sizeof(Word)> words;
std::memcpy(&words, &x, sizeof(x));
return words;
}

namespace internal
{
/// Counts the number of zero leading bits in nonzero argument x.
Expand Down

0 comments on commit 80cfa34

Please sign in to comment.