MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / rotl

Function rotl

third-party/lua-5.5.0/src/lmathlib.c:344–346  ·  view source on GitHub ↗

rotate left 'x' by 'n' bits */

Source from the content-addressed store, hash-verified

342
343/* rotate left 'x' by 'n' bits */
344static Rand64 rotl (Rand64 x, int n) {
345 return (x << n) | (trim64(x) >> (64 - n));
346}
347
348static Rand64 nextrand (Rand64 *state) {
349 Rand64 state0 = state[0];

Callers 1

nextrandFunction · 0.70

Calls 1

packIFunction · 0.70

Tested by

no test coverage detected