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

Function rotl

3rd/lua-5.4.3/src/lmathlib.c:304–306  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

302
303/* rotate left 'x' by 'n' bits */
304static Rand64 rotl (Rand64 x, int n) {
305 return (x << n) | (trim64(x) >> (64 - n));
306}
307
308static Rand64 nextrand (Rand64 *state) {
309 Rand64 state0 = state[0];

Callers 1

nextrandFunction · 0.70

Calls 1

packIFunction · 0.85

Tested by

no test coverage detected