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 b262138 commit b59820f
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 b59820f

Please sign in to comment.