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

Function I2UInt

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

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

Source from the content-addressed store, hash-verified

537
538/* convert a 'Rand64' to a 'lua_Unsigned' */
539static lua_Unsigned I2UInt (Rand64 x) {
540 return (((lua_Unsigned)trim32(x.h) << 31) << 1) | (lua_Unsigned)trim32(x.l);
541}
542
543/* convert a 'lua_Unsigned' to a 'Rand64' */
544static Rand64 Int2I (lua_Unsigned n) {

Callers 3

projectFunction · 0.70
math_randomFunction · 0.70
math_randomseedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected