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

Function I2UInt

extlibs/lua/src/lmathlib.c:501–503  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

499
500/* convert a 'Rand64' to a 'lua_Unsigned' */
501static lua_Unsigned I2UInt (Rand64 x) {
502 return ((lua_Unsigned)trim32(x.h) << 31 << 1) | (lua_Unsigned)trim32(x.l);
503}
504
505/* convert a 'lua_Unsigned' to a 'Rand64' */
506static Rand64 Int2I (lua_Unsigned n) {

Callers 2

projectFunction · 0.85
math_randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected