Searched refs:cast_int (Results 1 - 19 of 19) sorted by relevance
/netbsd-current/external/mit/lua/dist/src/ |
H A D | lfunc.h | 16 #define sizeCclosure(n) (cast_int(offsetof(CClosure, upvalue)) + \ 17 cast_int(sizeof(TValue)) * (n)) 19 #define sizeLclosure(n) (cast_int(offsetof(LClosure, upvals)) + \ 20 cast_int(sizeof(TValue *)) * (n))
|
H A D | ldebug.h | 16 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
|
H A D | llex.h | 54 #define NUM_RESERVED (cast_int(TK_WHILE-FIRST_RESERVED + 1))
|
H A D | ltable.c | 50 #define MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) 115 return hashmod(t, cast_int(ui)); 146 return cast_int(u <= cast_uint(INT_MAX) ? u : ~u); 352 i = cast_int(nodefromval(n) - gnode(t, 0)); /* key index in hash table */ 369 for (i -= asize; cast_int(i) < sizenode(t); i++) { /* hash part */ 503 for (i = 0; i < cast_int(size); i++) { 712 gnext(othern) = cast_int(f - othern); /* rechain to point to 'f' */ 715 gnext(f) += cast_int(mp - f); /* correct 'next' */ 723 gnext(f) = cast_int((mp + gnext(mp)) - f); /* chain new position */ 725 gnext(mp) = cast_int( [all...] |
H A D | lcode.c | 556 k = cast_int(ivalue(idx)); 683 luaK_codeAsBx(fs, OP_LOADI, reg, cast_int(i)); 693 luaK_codeAsBx(fs, OP_LOADF, reg, cast_int(fi)); 1291 *pi = int2sC(cast_int(i)); 1325 t->u.ind.idx = cast_int(k->u.ival); /* int. constant in proper range */ 1396 return cast(OpCode, (cast_int(opr) - cast_int(baser)) + cast_int(base)); 1404 return cast(OpCode, (cast_int(opr) - cast_int(OPR_MINU [all...] |
H A D | lopcodes.h | 123 #define getarg(i,pos,size) (cast_int(((i)>>(pos)) & MASK1(size,0))) 138 #define TESTARG_k(i) check_exp(checkopm(i, iABC), (cast_int(((i) & (1u << POS_k)))))
|
H A D | lobject.c | 292 #define MAXLASTD cast_int(LUA_MAXINTEGER % 10) 484 char *bf = getbuff(buff, cast_int(slen)); 486 addsize(buff, cast_int(slen));
|
H A D | llimits.h | 147 #define cast_int(i) cast(int, (i)) macro
|
H A D | lstate.h | 149 #define stacksize(th) cast_int((th)->stack_last.p - (th)->stack.p)
|
H A D | ldo.c | 259 int needed = cast_int(L->top.p - L->stack.p) + n; 288 res = cast_int(lim - L->stack.p) + 1; /* part of stack in use */ 529 int narg = cast_int(L->top.p - func) - 1; 604 int narg = cast_int(L->top.p - func) - 1; /* number of real arguments */ 864 : cast_int(L->top.p - (L->ci->func.p + 1));
|
H A D | lstring.c | 32 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*))
|
H A D | lfunc.c | 132 int idx = cast_int(level - L->ci->func.p); /* variable index */
|
H A D | ltm.c | 252 int actual = cast_int(L->top.p - ci->func.p) - 1; /* number of arguments */
|
H A D | lapi.c | 178 : cast_int(L->top.p - L->ci->func.p) + idx; 183 return cast_int(L->top.p - (L->ci->func.p + 1)); 1081 ci->u2.funcidx = cast_int(savestack(L, c.func)); 1167 res = cast_int(gettotalbytes(g) >> 10); 1171 res = cast_int(gettotalbytes(g) & 0x3ff);
|
H A D | lundump.c | 93 return cast_int(loadUnsigned(S, INT_MAX));
|
H A D | lvm.c | 814 #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) 893 int total = cast_int(top - 1 - (base + a)); /* yet to concatenate */ 1801 b = cast_int(L->top.p - ra); 1822 n = cast_int(L->top.p - ra); /* get what is available */ 1956 n = cast_int(L->top.p - ra) - 1; /* get up to the top */
|
H A D | lstate.c | 341 luaD_reallocstack(L, cast_int(ci->top.p - L->stack.p), 0);
|
H A D | lobject.h | 801 (check_exp((size&(size-1))==0, (cast_int((s) & ((size)-1)))))
|
H A D | lparser.c | 396 for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) {
|
Completed in 308 milliseconds