MCPcopy Create free account
hub / github.com/ddnet/ddnet / Rot

Function Rot

src/base/hash_libtomcrypt.cpp:57–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55static u32 Ch(u32 x, u32 y, u32 z) { return z ^ (x & (y ^ z)); }
56static u32 Maj(u32 x, u32 y, u32 z) { return ((x | y) & z) | (x & y); }
57static u32 Rot(u32 x, u32 n) { return (x >> (n & 31)) | (x << (32 - (n & 31))); }
58static u32 Sh(u32 x, u32 n) { return x >> n; }
59static u32 Sigma0(u32 x) { return Rot(x, 2) ^ Rot(x, 13) ^ Rot(x, 22); }
60static u32 Sigma1(u32 x) { return Rot(x, 6) ^ Rot(x, 11) ^ Rot(x, 25); }

Callers 4

Sigma0Function · 0.85
Sigma1Function · 0.85
Gamma0Function · 0.85
Gamma1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected