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

Function rotl

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

Source from the content-addressed store, hash-verified

38-----------------------------------------------------------------------------*/
39
40static inline uint32_t rotl(uint32_t x, uint32_t shift) {
41 return (x << shift) | (x >> (32 - shift));
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);

Callers 1

qroundFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected