MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / qround

Function qround

3rd/mimalloc-2.0.9/src/random.c:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static inline void qround(uint32_t x[16], size_t a, size_t b, size_t c, size_t d) {
45 x[a] += x[b]; x[d] = rotl(x[d] ^ x[a], 16);
46 x[c] += x[d]; x[b] = rotl(x[b] ^ x[c], 12);
47 x[a] += x[b]; x[d] = rotl(x[d] ^ x[a], 8);
48 x[c] += x[d]; x[b] = rotl(x[b] ^ x[c], 7);
49}
50
51static void chacha_block(mi_random_ctx_t* ctx)
52{

Callers 1

chacha_blockFunction · 0.85

Calls 1

rotlFunction · 0.70

Tested by

no test coverage detected