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

Function Unshuffle

src/crypto/sha256_x86_shani.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void inline __attribute__((always_inline)) Unshuffle(__m128i& s0, __m128i& s1)
59{
60 const __m128i t1 = _mm_shuffle_epi32(s0, 0x1B);
61 const __m128i t2 = _mm_shuffle_epi32(s1, 0xB1);
62 s0 = _mm_blend_epi16(t1, t2, 0xF0);
63 s1 = _mm_alignr_epi8(t2, t1, 0x08);
64}
65
66__m128i inline __attribute__((always_inline)) Load(const unsigned char* in)
67{

Callers 2

TransformFunction · 0.85
Transform_2wayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected