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

Function rotl1

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

for offsets larger than 32, rotate right by 64 - offset */

Source from the content-addressed store, hash-verified

464
465/* for offsets larger than 32, rotate right by 64 - offset */
466static Rand64 rotl1 (Rand64 i, int n) {
467 lua_assert(n > 32 && n < 64);
468 n = 64 - n;
469 return packI((trim32(i.h) >> n) | (i.l << (32 - n)),
470 (i.h << (32 - n)) | (trim32(i.l) >> n));
471}
472
473/*
474** implementation of 'xoshiro256**' algorithm on 'Rand64' values

Callers 1

nextrandFunction · 0.70

Calls 1

packIFunction · 0.70

Tested by

no test coverage detected