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

Function ShR

src/crypto/sha256_avx2.cpp:28–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26__m256i inline Or(__m256i x, __m256i y) { return _mm256_or_si256(x, y); }
27__m256i inline And(__m256i x, __m256i y) { return _mm256_and_si256(x, y); }
28__m256i inline ShR(__m256i x, int n) { return _mm256_srli_epi32(x, n); }
29__m256i inline ShL(__m256i x, int n) { return _mm256_slli_epi32(x, n); }
30
31__m256i inline Ch(__m256i x, __m256i y, __m256i z) { return Xor(z, And(x, Xor(y, z))); }

Callers 4

Sigma0Function · 0.70
Sigma1Function · 0.70
sigma0Function · 0.70
sigma1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected