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

Function rotl1

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

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

Source from the content-addressed store, hash-verified

425
426/* for offsets larger than 32, rotate right by 64 - offset */
427static Rand64 rotl1 (Rand64 i, int n) {
428 lua_assert(n > 32 && n < 64);
429 n = 64 - n;
430 return packI((trim32(i.h) >> n) | (i.l << (32 - n)),
431 (i.h << (32 - n)) | (trim32(i.l) >> n));
432}
433
434/*
435** implementation of 'xoshiro256**' algorithm on 'Rand64' values

Callers 1

nextrandFunction · 0.85

Calls 1

packIFunction · 0.85

Tested by

no test coverage detected