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

Function I2UInt

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

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

Source from the content-addressed store, hash-verified

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

Callers 2

projectFunction · 0.85
math_randomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected