Searched refs:cast_int (Results 1 – 10 of 10) sorted by relevance
99 int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; in lua_checkstack()156 : cast_int(L->top - L->ci->func + idx); in lua_absindex()161 return cast_int(L->top - (L->ci->func + 1)); in lua_gettop()1042 res = cast_int(gettotalbytes(g) >> 10); in lua_gc()1046 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
474 int total = cast_int(top - 1 - (base + b)); /* yet to concatenate */ in luaV_finishOp()695 if (cast_int(equalobj(L, rb, rc)) != GETARG_A(i)) in luaV_execute()839 if (n == 0) n = cast_int(L->top - ra) - 1; in luaV_execute()868 int n = cast_int(base - ci->func) - cl->p->numparams - 1; in luaV_execute()
97 #define cast_int(i) cast(int, (i)) macro
32 #define GCSTEPSIZE (cast_int(100 * sizeof(TString)))
180 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; in luaD_growstack()201 return cast_int(lim - L->stack) + 1; /* part of stack in use */ in stackinuse()328 n = cast_int(L->top - func) - 1; /* number of real arguments */ in luaD_precall()
81 #define numints cast_int(sizeof(lua_Number)/sizeof(int))158 i = cast_int(n - gnode(t, 0)); /* key index in hash table */ in findindex()
43 return ((e+1) << 3) | (cast_int(x) - 8); in luaO_int2fb()
522 cast_int(o - ci->u.l.base), &name); in luaG_typeerror()
34 #define GCSWEEPMAX (cast_int((GCSTEPSIZE / GCSWEEPCOST) / 4))
248 for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) { in searchvar()