Searched refs:cast_sizet (Results 1 – 8 of 8) sorted by relevance
/freebsd/contrib/lua/src/ |
H A D | lmem.h | 32 (sizeof(n) >= sizeof(size_t) && cast_sizet((n)) + 1 > MAX_SIZET/(e)) 45 ((cast_sizet(n) <= MAX_SIZET/sizeof(t)) ? (n) : \ 71 (cast(t *, luaM_realloc_(L, v, cast_sizet(oldn) * sizeof(t), \ 72 cast_sizet(n) * sizeof(t))))
|
H A D | lmem.c | 115 newblock = luaM_saferealloc_(L, block, cast_sizet(*psize) * size_elems, in luaM_growaux_() 116 cast_sizet(size) * size_elems); in luaM_growaux_() 131 size_t oldsize = cast_sizet((*size) * size_elem); in luaM_shrinkvector_() 132 size_t newsize = cast_sizet(final_n * size_elem); in luaM_shrinkvector_()
|
H A D | llimits.h | 147 #define cast_sizet(i) cast(size_t, (i)) macro
|
H A D | ltests.c | 1098 size_t size = cast_sizet(luaL_optinteger(L, 1, 0)); in newuserdata() 1108 lua_pushlightuserdata(L, cast_voidp(cast_sizet(u))); in pushuserdata() 1458 lua_pushnumber(L1, cast_sizet(func)); in runC() 1627 lua_rawgetp(L1, t, cast_voidp(cast_sizet(getnum))); in runC() 1639 lua_rawsetp(L1, t, cast_voidp(cast_sizet(getnum))); in runC()
|
H A D | lstate.c | 68 { size_t t = cast_sizet(e); \
|
H A D | ltable.c | 373 luaM_freearray(L, t->node, cast_sizet(sizenode(t))); in freehash()
|
H A D | lgc.c | 122 #define gnodelast(h) gnode(h, cast_sizet(sizenode(h)))
|
H A D | lapi.c | 478 case LUA_VLCF: return cast_voidp(cast_sizet(fvalue(o))); in lua_topointer()
|