Home
last modified time | relevance | path

Searched refs:lua_Unsigned (Results 1 – 10 of 10) sorted by relevance

/minix3/external/mit/lua/dist/src/
H A Dlbitlib.c33 #define ALLONES (~(((~(lua_Unsigned)0) << (LUA_NBITS - 1)) << 1))
45 static lua_Unsigned andaux (lua_State *L) { in andaux()
47 lua_Unsigned r = ~(lua_Unsigned)0; in andaux()
55 lua_Unsigned r = andaux(L); in b_and()
62 lua_Unsigned r = andaux(L); in b_test()
70 lua_Unsigned r = 0; in b_or()
80 lua_Unsigned r = 0; in b_xor()
89 lua_Unsigned r = ~luaL_checkunsigned(L, 1); in b_not()
95 static int b_shift (lua_State *L, lua_Unsigned r, lua_Integer i) { in b_shift()
123 lua_Unsigned r = luaL_checkunsigned(L, 1); in b_arshift()
[all …]
H A Dlmathlib.c132 if ((lua_Unsigned)d + 1u <= 1u) { /* special cases: -1 or 0 */ in math_fmod()
177 lua_pushboolean(L, (lua_Unsigned)a < (lua_Unsigned)b); in math_ult()
H A Dlstrlib.c1249 static void packint (luaL_Buffer *b, lua_Unsigned n, in packint()
1309 packint(&b, (lua_Unsigned)n, h.islittle, size, (n < 0)); in str_pack()
1315 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)), in str_pack()
1317 packint(&b, (lua_Unsigned)n, h.islittle, size, 0); in str_pack()
1347 packint(&b, (lua_Unsigned)len, h.islittle, size, 0); /* pack length */ in str_pack()
1407 lua_Unsigned res = 0; in unpackint()
1412 res |= (lua_Unsigned)(unsigned char)str[islittle ? i : size - 1 - i]; in unpackint()
1416 lua_Unsigned mask = (lua_Unsigned)1 << (size*NB - 1); in unpackint()
H A Dlauxlib.h258 #define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a))
260 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
H A Dltablib.c214 lua_Unsigned n; in unpack()
219 n = (lua_Unsigned)e - i; /* number of elements minus 1 (avoid overflows) */ in unpack()
H A Dllimits.h126 #define l_castS2U(i) ((lua_Unsigned)(i))
H A Dlua.h110 typedef LUA_UNSIGNED lua_Unsigned; typedef
419 #define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is))
H A Dlbaselib.c53 lua_Unsigned n = 0; in b_str2int()
H A Dlobject.c281 lua_Unsigned a = 0; in l_str2int()
H A Dltable.c162 if (0 < k && (lua_Unsigned)k <= MAXASIZE) in arrayindex()