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

Function rotl1

third-party/lua-5.4.6/src/lmathlib.c:446–451  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

444
445/* for offsets larger than 32, rotate right by 64 - offset */
446static Rand64 rotl1 (Rand64 i, int n) {
447 lua_assert(n > 32 && n < 64);
448 n = 64 - n;
449 return packI((trim32(i.h) >> n) | (i.l << (32 - n)),
450 (i.h << (32 - n)) | (trim32(i.l) >> n));
451}
452
453/*
454** implementation of 'xoshiro256**' algorithm on 'Rand64' values

Callers 1

nextrandFunction · 0.70

Calls 1

packIFunction · 0.70

Tested by

no test coverage detected