Skip to content

Commit

Permalink
Stub shani into hash iterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Nov 24, 2024
1 parent 6abe495 commit 2a74481
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions include/bitcoin/system/impl/hash/sha/algorithm_iterate.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,15 @@ iterate(state_t& state, const ablocks_t<Size>& blocks) NOEXCEPT
{
iterate_(state, blocks);
}
else if constexpr (native)
{
// Multiple block shani message schduling and compression optimization.
iterate_(state, blocks);
}
else if constexpr (vector)
{
// Multi-block vectorized message scheduling optimization.
// TODO: evaluate 4/8/16 lane message scheduling vs. shani scheduling.
// Multiple block vectorized message scheduling optimization.
iterate_vector(state, blocks);
}
else
Expand All @@ -288,9 +294,15 @@ TEMPLATE
INLINE void CLASS::
iterate(state_t& state, iblocks_t& blocks) NOEXCEPT
{
if constexpr (vector)
if constexpr (native)
{
// TODO: evaluate 4/8/16 lane message scheduling vs. shani scheduling.
// Multiple block shani message schduling and compression optimization.
iterate_(state, blocks);
}
else if constexpr (vector)
{
// Multi-block vectorized message scheduling optimization.
// Multiple block vectorized message scheduling optimization.
iterate_vector(state, blocks);
}
else
Expand Down

0 comments on commit 2a74481

Please sign in to comment.