/freebsd/contrib/lua/src/ |
H A D | lfunc.h | 14 #define sizeCclosure(n) (cast_int(offsetof(CClosure, upvalue)) + \ 15 cast_int(sizeof(TValue)) * (n)) 17 #define sizeLclosure(n) (cast_int(offsetof(LClosure, upvals)) + \ 18 cast_int(sizeof(TValue *)) * (n))
|
H A D | ltable.c | 46 #define MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) 111 return hashmod(t, cast_int(ui)); in hashint() 141 return cast_int(u <= cast_uint(INT_MAX) ? u : ~u); in l_hashfloat() 342 i = cast_int(nodefromval(n) - gnode(t, 0)); /* key index in hash table */ in findindex() 359 for (i -= asize; cast_int(i) < sizenode(t); i++) { /* hash part */ in luaH_next() 493 for (i = 0; i < cast_int(size); i++) { in setnodevector() 698 gnext(othern) = cast_int(f - othern); /* rechain to point to 'f' */ in luaH_newkey() 701 gnext(f) += cast_int(mp - f); /* correct 'next' */ in luaH_newkey() 709 gnext(f) = cast_int((mp + gnext(mp)) - f); /* chain new position */ in luaH_newkey() 711 gnext(mp) = cast_int(f - mp); in luaH_newkey()
|
H A D | lcode.c | 550 k = cast_int(ivalue(idx)); in addk() 681 luaK_codeAsBx(fs, OP_LOADI, reg, cast_int(i)); in luaK_int() 690 luaK_codeAsBx(fs, OP_LOADF, reg, cast_int(fi)); in luaK_float() 1271 *pi = int2sC(cast_int(i)); in isSCnumber() 1305 t->u.ind.idx = cast_int(k->u.ival); /* int. constant in proper range */ in luaK_indexed() 1368 return cast(OpCode, (cast_int(opr) - cast_int(baser)) + cast_int(base)); in binopr2op() 1376 return cast(OpCode, (cast_int(opr) - cast_int(OPR_MINUS)) + in unopr2op() 1377 cast_int(OP_UNM)); in unopr2op() 1386 return cast(TMS, (cast_int(opr) - cast_int(OPR_ADD)) + cast_int(TM_ADD)); in binopr2TM() 1446 int v2 = int2sC(cast_int(e2->u.ival)); /* immediate operand */ in codebini() [all …]
|
H A D | ldebug.h | 14 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
|
H A D | lopcodes.h | 121 #define getarg(i,pos,size) (cast_int(((i)>>(pos)) & MASK1(size,0))) 136 #define TESTARG_k(i) check_exp(checkopm(i, iABC), (cast_int(((i) & (1u << POS_k)))))
|
H A D | llex.h | 46 #define NUM_RESERVED (cast_int(TK_WHILE-FIRST_RESERVED + 1))
|
H A D | lobject.c | 274 #define MAXLASTD cast_int(LUA_MAXINTEGER % 10) 455 char *bf = getbuff(buff, cast_int(slen)); in addstr2buff() 457 addsize(buff, cast_int(slen)); in addstr2buff()
|
H A D | ldo.c | 255 int needed = cast_int(L->top.p - L->stack.p) + n; in luaD_growstack() 284 res = cast_int(lim - L->stack.p) + 1; /* part of stack in use */ in stackinuse() 525 int narg = cast_int(L->top.p - func) - 1; in precallC() 600 int narg = cast_int(L->top.p - func) - 1; /* number of real arguments */ in luaD_precall() 860 : cast_int(L->top.p - (L->ci->func.p + 1)); in lua_resume()
|
H A D | ltests.c | 799 int pc = cast_int(luaL_checkinteger(L, 2)) - 1; in listlocals() 994 int i = cast_int(luaL_optinteger(L, 2, -1)); in table_query() 1033 int s = cast_int(luaL_optinteger(L, 1, 0)) - 1; in string_query() 1073 luaL_unref(L, LUA_REGISTRYINDEX, cast_int(luaL_checkinteger(L, 1))); in unref() 1081 int n = cast_int(luaL_checkinteger(L, 2)); in upvalue() 1311 res = cast_int(lua_tointeger(L1, -1)); in getnum_aux() 1878 int count = cast_int(luaL_optinteger(L, 3, 0)); in sethook()
|
H A D | llimits.h | 141 #define cast_int(i) cast(int, (i)) macro
|
H A D | lapi.c | 172 : cast_int(L->top.p - L->ci->func.p) + idx; in lua_absindex() 177 return cast_int(L->top.p - (L->ci->func.p + 1)); in lua_gettop() 1071 ci->u2.funcidx = cast_int(savestack(L, c.func)); in lua_pcallk() 1157 res = cast_int(gettotalbytes(g) >> 10); in lua_gc() 1161 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
|
H A D | lstate.h | 147 #define stacksize(th) cast_int((th)->stack_last.p - (th)->stack.p)
|
H A D | lvm.c | 770 #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) 849 int total = cast_int(top - 1 - (base + a)); /* yet to concatenate */ in luaV_finishOp() 1706 b = cast_int(L->top.p - ra); in luaV_execute() 1727 n = cast_int(L->top.p - ra); /* get what is available */ in luaV_execute() 1857 n = cast_int(L->top.p - ra) - 1; /* get up to the top */ in luaV_execute()
|
H A D | lstring.c | 28 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*))
|
H A D | ltm.c | 241 int actual = cast_int(L->top.p - ci->func.p) - 1; /* number of arguments */ in luaT_adjustvarargs()
|
H A D | lfunc.c | 128 int idx = cast_int(level - L->ci->func.p); /* variable index */ in checkclosemth()
|
H A D | lundump.c | 89 return cast_int(loadUnsigned(S, INT_MAX)); in loadInt()
|
H A D | lstate.c | 337 luaD_reallocstack(L, cast_int(ci->top.p - L->stack.p), 0); in luaE_resetthread()
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lapi.c | 95 int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; in lua_checkstack() 152 : cast_int(L->top - L->ci->func + idx); in lua_absindex() 157 return cast_int(L->top - (L->ci->func + 1)); in lua_gettop() 1040 res = cast_int(gettotalbytes(g) >> 10); in lua_gc() 1044 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
|
H A D | lgc.h | 32 #define GCSTEPSIZE (cast_int(100 * sizeof(TString)))
|
H A D | llimits.h | 93 #define cast_int(i) cast(int, (i)) macro
|
H A D | lvm.c | 511 int total = cast_int(top - 1 - (base + b)); /* yet to concatenate */ in luaV_finishOp() 735 if (cast_int(equalobj(L, rb, rc)) != GETARG_A(i)) in luaV_execute() 879 if (n == 0) n = cast_int(L->top - ra) - 1; in luaV_execute() 908 int n = cast_int(base - ci->func) - cl->p->numparams - 1; in luaV_execute()
|
H A D | ldo.c | 263 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; in luaD_growstack() 284 return cast_int(lim - L->stack) + 1; /* part of stack in use */ in stackinuse() 411 n = cast_int(L->top - func) - 1; /* number of real arguments */ in luaD_precall()
|
H A D | ldebug.c | 114 int nvararg = cast_int(ci->u.l.base - ci->func) - nparams; in findvararg() 535 cast_int(o - ci->u.l.base), &name); in luaG_typeerror()
|
H A D | lobject.c | 38 return ((e+1) << 3) | (cast_int(x) - 8); in luaO_int2fb()
|