Home
last modified time | relevance | path

Searched refs:cast_sizet (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/lua/src/
H A Dlmem.h32 (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 Dlmem.c115 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 Dllimits.h147 #define cast_sizet(i) cast(size_t, (i)) macro
H A Dltests.c1098 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 Dlstate.c68 { size_t t = cast_sizet(e); \
H A Dltable.c373 luaM_freearray(L, t->node, cast_sizet(sizenode(t))); in freehash()
H A Dlgc.c122 #define gnodelast(h) gnode(h, cast_sizet(sizenode(h)))
H A Dlapi.c478 case LUA_VLCF: return cast_voidp(cast_sizet(fvalue(o))); in lua_topointer()