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

Function Write4

src/crypto/sha256_sse41.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void inline Write4(unsigned char* out, int offset, __m128i v) {
58 v = _mm_shuffle_epi8(v, _mm_set_epi32(0x0C0D0E0FUL, 0x08090A0BUL, 0x04050607UL, 0x00010203UL));
59 WriteLE32(out + 0 + offset, _mm_extract_epi32(v, 3));
60 WriteLE32(out + 32 + offset, _mm_extract_epi32(v, 2));
61 WriteLE32(out + 64 + offset, _mm_extract_epi32(v, 1));
62 WriteLE32(out + 96 + offset, _mm_extract_epi32(v, 0));
63}
64
65}
66

Callers 1

Transform_4wayFunction · 0.85

Calls 1

WriteLE32Function · 0.70

Tested by

no test coverage detected