Lines Matching refs:lua_Unsigned
32 if (n < 0) n = (lua_Integer)(0u - (lua_Unsigned)n); in math_abs()
120 if ((lua_Unsigned)d + 1u <= 1u) { /* special cases: -1 or 0 */ in math_fmod()
165 lua_pushboolean(L, (lua_Unsigned)a < (lua_Unsigned)b); in math_ult()
282 #define Rand64 lua_Unsigned
341 #define I2UInt(x) ((lua_Unsigned)trim64(x))
501 static lua_Unsigned I2UInt (Rand64 x) { in I2UInt()
502 return ((lua_Unsigned)trim32(x.h) << 31 << 1) | (lua_Unsigned)trim32(x.l); in I2UInt()
506 static Rand64 Int2I (lua_Unsigned n) { in Int2I()
531 static lua_Unsigned project (lua_Unsigned ran, lua_Unsigned n, in project()
536 lua_Unsigned lim = n; in project()
558 lua_Unsigned p; in math_random()
585 p = project(I2UInt(rv), (lua_Unsigned)up - (lua_Unsigned)low, state); in math_random()
586 lua_pushinteger(L, p + (lua_Unsigned)low); in math_random()
592 lua_Unsigned n1, lua_Unsigned n2) { in setseed()
611 lua_Unsigned seed1 = (lua_Unsigned)time(NULL); in randseed()
612 lua_Unsigned seed2 = (lua_Unsigned)(size_t)L; in randseed()