| /freebsd-13.1/contrib/lua/src/ |
| H A D | lmathlib.c | 165 lua_pushboolean(L, (lua_Unsigned)a < (lua_Unsigned)b); in math_ult() 282 #define Rand64 lua_Unsigned 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() 558 lua_Unsigned p; in math_random() 585 p = project(I2UInt(rv), (lua_Unsigned)up - (lua_Unsigned)low, state); in math_random() 592 lua_Unsigned n1, lua_Unsigned n2) { in setseed() 611 lua_Unsigned seed1 = (lua_Unsigned)time(NULL); in randseed() [all …]
|
| H A 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()
|
| H A 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() 1531 static void packint (luaL_Buffer *b, lua_Unsigned n, 1587 packint(&b, (lua_Unsigned)n, h.islittle, size, (n < 0)); 1593 luaL_argcheck(L, (lua_Unsigned)n < ((lua_Unsigned)1 << (size * NB)), 1595 packint(&b, (lua_Unsigned)n, h.islittle, size, 0); 1630 packint(&b, (lua_Unsigned)len, h.islittle, size, 0); /* pack length */ 1685 lua_Unsigned res = 0; 1690 res |= (lua_Unsigned)(unsigned char)str[islittle ? i : size - 1 - i]; 1694 lua_Unsigned mask = (lua_Unsigned)1 << (size*NB - 1);
|
| H A D | ltable.c | 811 static lua_Unsigned hash_search (Table *t, lua_Unsigned j) { in hash_search() 812 lua_Unsigned i; in hash_search() 828 lua_Unsigned m = (i + j) / 2; in hash_search() 879 lua_Unsigned luaH_getn (Table *t) { in luaH_getn()
|
| H A D | lutf8lib.c | 152 lua_Unsigned code = (lua_Unsigned)luaL_checkinteger(L, arg); in pushutfchar()
|
| H A D | ltable.h | 52 LUAI_FUNC lua_Unsigned luaH_getn (Table *t);
|
| H A 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))
|
| H A 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)))
|
| H A D | loslib.c | 264 if (!(res >= 0 ? (lua_Unsigned)res <= (lua_Unsigned)INT_MAX + delta in getfield()
|
| 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 | 139 #define l_castS2U(i) ((lua_Unsigned)(i))
|
| H A D | lvm.c | 72 #define MAXINTFITSF ((lua_Unsigned)1 << NBM) 227 lua_Unsigned count; in forprep() 1236 lua_Unsigned n; in luaV_execute() 1289 lua_Unsigned n; in luaV_execute() 1731 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 | 402 LUA_API lua_Unsigned lua_rawlen (lua_State *L, int idx) { in lua_rawlen()
|
| /freebsd-13.1/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 | 363 LUA_API lua_Unsigned lua_tounsignedx (lua_State *L, int idx, int *isnum) { in lua_tounsignedx() 367 lua_Unsigned res; in lua_tounsignedx() 488 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-13.1/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);
|