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

Function Sigma0

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

Source from the content-addressed store, hash-verified

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); }
62static u32 Gamma1(u32 x) { return Rot(x, 17) ^ Rot(x, 19) ^ Sh(x, 10); }

Callers

nothing calls this directly

Calls 1

RotFunction · 0.85

Tested by

no test coverage detected