/freebsd/contrib/lua/src/ |
H A 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() 294 #define Rand64 lua_Unsigned 361 #define I2UInt(x) ((lua_Unsigned)trim64(x)) 519 static lua_Unsigned I2UInt (Rand64 x) { in I2UInt() 520 return (((lua_Unsigned)trim32(x.h) << 31) << 1) | (lua_Unsigned)trim32(x.l); in I2UInt() 524 static Rand64 Int2I (lua_Unsigned n) { in Int2I() 549 static lua_Unsigned project (lua_Unsigned ran, lua_Unsigned n, in project() 554 lua_Unsigned lim = n; in project() [all …]
|
H A D | ltablib.c | 74 luaL_argcheck(L, (lua_Unsigned)pos - 1u < (lua_Unsigned)e, 2, in tinsert() 96 luaL_argcheck(L, (lua_Unsigned)pos - 1u <= (lua_Unsigned)size, 2, in tremove() 195 lua_Unsigned n; in tunpack() 199 n = (lua_Unsigned)e - i; /* number of elements minus 1 (avoid overflows) */ in tunpack()
|
H A D | lutf8lib.c | 156 lua_Unsigned code = (lua_Unsigned)luaL_checkinteger(L, arg); in pushutfchar() 231 lua_Unsigned n = (lua_Unsigned)lua_tointeger(L, 2); in iter_aux()
|
H A D | lauxlib.h | 162 ((lua_Integer)((lua_Unsigned)(v1) op (lua_Unsigned)(v2))) 284 #define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a)) 286 ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
H A D | ltable.c | 109 lua_Unsigned ui = l_castS2U(i); in hashint() 746 lua_Unsigned alimit = t->alimit; in luaH_getint() 870 static lua_Unsigned hash_search (Table *t, lua_Unsigned j) { in hash_search() 871 lua_Unsigned i; in hash_search() 887 lua_Unsigned m = (i + j) / 2; in hash_search() 938 lua_Unsigned luaH_getn (Table *t) { in luaH_getn()
|
H A D | lstrlib.c | 201 lua_Unsigned c = (lua_Unsigned)luaL_checkinteger(L, i); in str_char() 202 luaL_argcheck(L, c <= (lua_Unsigned)UCHAR_MAX, i, "value out of range"); in str_char() 1580 static void packint (luaL_Buffer *b, lua_Unsigned n, 1636 packint(&b, (lua_Unsigned)n, h.islittle, size, (n < 0)); 1642 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)), 1644 packint(&b, (lua_Unsigned)n, h.islittle, size, 0); 1691 packint(&b, (lua_Unsigned)len, h.islittle, size, 0); /* pack length */ 1746 lua_Unsigned res = 0; 1751 res |= (lua_Unsigned)(unsigned char)str[islittle ? i : size - 1 - i]; 1755 lua_Unsigned mask = (lua_Unsigned)1 << (size*NB - 1);
|
H A D | lua.h | 97 typedef LUA_UNSIGNED lua_Unsigned; typedef 205 LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx); 418 #define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is))
|
H A D | ltable.h | 54 LUAI_FUNC lua_Unsigned luaH_getn (Table *t);
|
H A D | lobject.c | 273 #define MAXBY10 cast(lua_Unsigned, LUA_MAXINTEGER / 10) 277 lua_Unsigned a = 0; in l_str2int()
|
H A D | llimits.h | 152 #define l_castS2U(i) ((lua_Unsigned)(i))
|
H A D | lvm.c | 74 #define MAXINTFITSF ((lua_Unsigned)1 << NBM) 226 lua_Unsigned count; in forprep() 1274 lua_Unsigned n; in luaV_execute() 1330 lua_Unsigned n; in luaV_execute() 1794 lua_Unsigned count = l_castS2U(ivalue(s2v(ra + 1))); in luaV_execute()
|
H A D | lbaselib.c | 61 lua_Unsigned n = 0; in b_str2int()
|
H A D | lapi.c | 426 LUA_API lua_Unsigned lua_rawlen (lua_State *L, int idx) { in lua_rawlen()
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | llimits.h | 246 #define lua_number2unsigned(i,n) lua_number2int32(i, n, lua_Unsigned) 270 #define SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1) 272 ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED)) 274 #define lua_number2unsigned(i,n) ((i)=(lua_Unsigned)(n)) 283 (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u))
|
H A D | lauxlib.c | 358 LUALIB_API lua_Unsigned luaL_checkunsigned (lua_State *L, int narg) { in luaL_checkunsigned() 360 lua_Unsigned d = lua_tounsignedx(L, narg, &isnum); in luaL_checkunsigned() 373 LUALIB_API lua_Unsigned luaL_optunsigned (lua_State *L, int narg, in luaL_optunsigned() 374 lua_Unsigned def) { in luaL_optunsigned() 785 lua_tounsigned(L, -1) != (lua_Unsigned)-0x1234) in luaL_checkversion_()
|
H A D | lapi.c | 365 LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *isnum) { in lua_tounsignedx() 369 lua_Unsigned res; in lua_tounsignedx() 490 LUA_API void lua_pushunsigned (lua_State *L, lua_Unsigned u) { in lua_pushunsigned()
|
H A D | lvm.c | 373 if ((lua_Unsigned)(n) + 1u <= 1u) { /* special cases: -1 or 0 */ in luaV_div() 393 if ((lua_Unsigned)(n) + 1u <= 1u) { /* special cases: -1 or 0 */ in luaV_mod()
|
/freebsd/sys/contrib/openzfs/include/sys/lua/ |
H A D | lauxlib.h | 44 LUALIB_API lua_Unsigned (luaL_checkunsigned) (lua_State *L, int numArg); 45 LUALIB_API lua_Unsigned (luaL_optunsigned) (lua_State *L, int numArg, 46 lua_Unsigned def);
|
H A D | lua.h | 109 typedef LUA_UNSIGNED lua_Unsigned; typedef 170 LUA_API lua_Unsigned (lua_tounsignedx) (lua_State *L, int idx, int *isnum); 208 LUA_API void (lua_pushunsigned) (lua_State *L, lua_Unsigned n);
|