MCPcopy Create free account
hub / github.com/ElementsProject/elements / Shuffle

Function Shuffle

src/crypto/sha256_x86_shani.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void inline __attribute__((always_inline)) Shuffle(__m128i& s0, __m128i& s1)
51{
52 const __m128i t1 = _mm_shuffle_epi32(s0, 0xB1);
53 const __m128i t2 = _mm_shuffle_epi32(s1, 0x1B);
54 s0 = _mm_alignr_epi8(t1, t2, 0x08);
55 s1 = _mm_blend_epi16(t2, t1, 0xF0);
56}
57
58void inline __attribute__((always_inline)) Unshuffle(__m128i& s0, __m128i& s1)
59{

Callers 13

TransformFunction · 0.70
SelectCoinsSRDFunction · 0.50
KnapsackSolverFunction · 0.50
spend.cppFile · 0.50
BOOST_FIXTURE_TEST_CASEFunction · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50
BuildBigPriorityTestFunction · 0.50
TestInterleavedScenariosFunction · 0.50
IsProtectedFunction · 0.50
IsEvictedFunction · 0.50
FUZZ_TARGETFunction · 0.50

Calls

no outgoing calls

Tested by 7

BOOST_FIXTURE_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
BuildBigPriorityTestFunction · 0.40
TestInterleavedScenariosFunction · 0.40
IsProtectedFunction · 0.40
IsEvictedFunction · 0.40
FUZZ_TARGETFunction · 0.40