MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Write4

Function Write4

src/crypto/sha256_sse41.cpp:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Transform_4wayFunction · 0.85

Calls 1

WriteLE32Function · 0.85

Tested by

no test coverage detected