Searched refs:lua_Unsigned (Results 1 – 14 of 14) sorted by relevance
/external/lua/src/ |
D | lmathlib.c | 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() [all …]
|
D | ltablib.c | 73 luaL_argcheck(L, (lua_Unsigned)pos - 1u < (lua_Unsigned)e, 2, in tinsert() 95 luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 1, in tremove() 194 lua_Unsigned n; in tunpack() 198 n = (lua_Unsigned)e - i; /* number of elements minus 1 (avoid overflows) */ in tunpack()
|
D | lstrlib.c | 200 lua_Unsigned c = (lua_Unsigned)luaL_checkinteger(L, i); in str_char() 201 luaL_argcheck(L, c <= (lua_Unsigned)UCHAR_MAX, i, "value out of range"); in str_char() 1517 static void packint (luaL_Buffer *b, lua_Unsigned n, in packint() 1575 packint(&b, (lua_Unsigned)n, h.islittle, size, (n < 0)); in str_pack() 1581 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)), in str_pack() 1583 packint(&b, (lua_Unsigned)n, h.islittle, size, 0); in str_pack() 1614 packint(&b, (lua_Unsigned)len, h.islittle, size, 0); /* pack length */ in str_pack() 1669 lua_Unsigned res = 0; in unpackint() 1674 res |= (lua_Unsigned)(unsigned char)str[islittle ? i : size - 1 - i]; in unpackint() 1678 lua_Unsigned mask = (lua_Unsigned)1 << (size*NB - 1); in unpackint()
|
D | ltable.c | 797 static lua_Unsigned hash_search (Table *t, lua_Unsigned j) { in hash_search() 798 lua_Unsigned i; in hash_search() 814 lua_Unsigned m = (i + j) / 2; in hash_search() 865 lua_Unsigned luaH_getn (Table *t) { in luaH_getn()
|
D | lutf8lib.c | 152 lua_Unsigned code = (lua_Unsigned)luaL_checkinteger(L, arg); in pushutfchar()
|
D | ltable.h | 52 LUAI_FUNC lua_Unsigned luaH_getn (Table *t);
|
D | lauxlib.h | 259 #define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a)) 261 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
D | lua.h | 97 typedef LUA_UNSIGNED lua_Unsigned; typedef 194 LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx); 406 #define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is))
|
D | loslib.c | 264 if (!(res >= 0 ? (lua_Unsigned)res <= (lua_Unsigned)INT_MAX + delta in getfield()
|
D | llimits.h | 139 #define l_castS2U(i) ((lua_Unsigned)(i))
|
D | lobject.c | 273 #define MAXBY10 cast(lua_Unsigned, LUA_MAXINTEGER / 10) 277 lua_Unsigned a = 0; in l_str2int()
|
D | lvm.c | 71 #define MAXINTFITSF ((lua_Unsigned)1 << NBM) 220 lua_Unsigned count; in forprep() 1230 lua_Unsigned n; in luaV_execute() 1283 lua_Unsigned n; in luaV_execute() 1705 lua_Unsigned count = l_castS2U(ivalue(s2v(ra + 1))); in luaV_execute()
|
D | lbaselib.c | 61 lua_Unsigned n = 0; in b_str2int()
|
D | lapi.c | 402 LUA_API lua_Unsigned lua_rawlen (lua_State *L, int idx) { in lua_rawlen()
|