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

Function Int2I

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

convert a 'lua_Unsigned' to a 'Rand64' */

Source from the content-addressed store, hash-verified

505
506/* convert a 'lua_Unsigned' to a 'Rand64' */
507static Rand64 Int2I (lua_Unsigned n) {
508 return packI((lu_int32)(n >> 31 >> 1), (lu_int32)n);
509}
510
511#endif /* } */
512

Callers 1

setseedFunction · 0.85

Calls 1

packIFunction · 0.85

Tested by

no test coverage detected