Lines Matching refs:lua_Unsigned
34 if (n < 0) n = (lua_Integer)(0u - (lua_Unsigned)n); in math_abs()
122 if ((lua_Unsigned)d + 1u <= 1u) { /* special cases: -1 or 0 */ in math_fmod()
167 lua_pushboolean(L, (lua_Unsigned)a < (lua_Unsigned)b); in math_ult()
285 #define Rand64 lua_Unsigned
344 #define I2UInt(x) ((lua_Unsigned)trim64(x))
504 static lua_Unsigned I2UInt (Rand64 x) { in I2UInt()
505 return (((lua_Unsigned)trim32(x.h) << 31) << 1) | (lua_Unsigned)trim32(x.l); in I2UInt()
509 static Rand64 Int2I (lua_Unsigned n) { in Int2I()
534 static lua_Unsigned project (lua_Unsigned ran, lua_Unsigned n, in project()
539 lua_Unsigned lim = n; in project()
561 lua_Unsigned p; in math_random()
588 p = project(I2UInt(rv), (lua_Unsigned)up - (lua_Unsigned)low, state); in math_random()
589 lua_pushinteger(L, p + (lua_Unsigned)low); in math_random()
595 lua_Unsigned n1, lua_Unsigned n2) { in setseed()
614 lua_Unsigned seed1 = (lua_Unsigned)time(NULL); in randseed()
615 lua_Unsigned seed2 = (lua_Unsigned)(size_t)L; in randseed()