| /freebsd-14.2/contrib/lua/src/ |
| H A D | lmathlib.c | 165 lua_pushboolean(L, (lua_Unsigned)a < (lua_Unsigned)b); in math_ult() 283 #define Rand64 lua_Unsigned 503 return (((lua_Unsigned)trim32(x.h) << 31) << 1) | (lua_Unsigned)trim32(x.l); in I2UInt() 507 static Rand64 Int2I (lua_Unsigned n) { in Int2I() 532 static lua_Unsigned project (lua_Unsigned ran, lua_Unsigned n, in project() 537 lua_Unsigned lim = n; in project() 559 lua_Unsigned p; in math_random() 586 p = project(I2UInt(rv), (lua_Unsigned)up - (lua_Unsigned)low, state); in math_random() 593 lua_Unsigned n1, lua_Unsigned n2) { in setseed() 612 lua_Unsigned seed1 = (lua_Unsigned)time(NULL); in randseed() [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 | 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 | ltable.c | 109 lua_Unsigned ui = l_castS2U(i); in hashint() 855 static lua_Unsigned hash_search (Table *t, lua_Unsigned j) { in hash_search() 856 lua_Unsigned i; in hash_search() 872 lua_Unsigned m = (i + j) / 2; in hash_search() 923 lua_Unsigned luaH_getn (Table *t) { in luaH_getn()
|
| 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 | 56 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) 224 lua_Unsigned count; in forprep() 1273 lua_Unsigned n; in luaV_execute() 1329 lua_Unsigned n; in luaV_execute() 1793 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-14.2/sys/contrib/openzfs/module/lua/ |
| H A D | llimits.h | 245 #define lua_number2unsigned(i,n) lua_number2int32(i, n, lua_Unsigned) 269 #define SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1) 271 ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED)) 273 #define lua_number2unsigned(i,n) ((i)=(lua_Unsigned)(n)) 282 (((u) <= (lua_Unsigned)INT_MAX) ? (lua_Number)(int)(u) : (lua_Number)(u))
|
| H A D | lauxlib.c | 357 LUALIB_API lua_Unsigned luaL_checkunsigned (lua_State *L, int narg) { in luaL_checkunsigned() 359 lua_Unsigned d = lua_tounsignedx(L, narg, &isnum); in luaL_checkunsigned() 372 LUALIB_API lua_Unsigned luaL_optunsigned (lua_State *L, int narg, in luaL_optunsigned() 373 lua_Unsigned def) { in luaL_optunsigned() 784 lua_tounsigned(L, -1) != (lua_Unsigned)-0x1234) in luaL_checkversion_()
|
| H A D | lapi.c | 364 LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *isnum) { in lua_tounsignedx() 368 lua_Unsigned res; in lua_tounsignedx() 489 LUA_API void lua_pushunsigned (lua_State *L, lua_Unsigned u) { in lua_pushunsigned()
|
| H A D | lvm.c | 372 if ((lua_Unsigned)(n) + 1u <= 1u) { /* special cases: -1 or 0 */ in luaV_div() 392 if ((lua_Unsigned)(n) + 1u <= 1u) { /* special cases: -1 or 0 */ in luaV_mod()
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/lua/ |
| H A D | lauxlib.h | 43 LUALIB_API lua_Unsigned (luaL_checkunsigned) (lua_State *L, int numArg); 44 LUALIB_API lua_Unsigned (luaL_optunsigned) (lua_State *L, int numArg, 45 lua_Unsigned def);
|
| H A D | lua.h | 108 typedef LUA_UNSIGNED lua_Unsigned; typedef 169 LUA_API lua_Unsigned (lua_tounsignedx) (lua_State *L, int idx, int *isnum); 207 LUA_API void (lua_pushunsigned) (lua_State *L, lua_Unsigned n);
|