MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / rotl1

Function rotl1

extlibs/lua/src/lmathlib.c:426–431  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

nextrandFunction · 0.85

Calls 1

packIFunction · 0.85

Tested by

no test coverage detected