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

Function I2UInt

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

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

Source from the content-addressed store, hash-verified

517
518/* convert a 'Rand64' to a 'lua_Unsigned' */
519static lua_Unsigned I2UInt (Rand64 x) {
520 return (((lua_Unsigned)trim32(x.h) << 31) << 1) | (lua_Unsigned)trim32(x.l);
521}
522
523/* convert a 'lua_Unsigned' to a 'Rand64' */
524static Rand64 Int2I (lua_Unsigned n) {

Callers 2

projectFunction · 0.70
math_randomFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected