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

Function Sh

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

Source from the content-addressed store, hash-verified

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); }
61static u32 Gamma0(u32 x) { return Rot(x, 7) ^ Rot(x, 18) ^ Sh(x, 3); }

Callers 2

Gamma0Function · 0.85
Gamma1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected