Searched refs:cast_int (Results 1 – 20 of 20) sorted by relevance
/l4re-core-master/lua/lib/contrib/src/ |
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))
|
A D | ltable.c | 46 #define MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) 129 return cast_int(u <= cast_uint(INT_MAX) ? u : ~u); in l_hashfloat() 331 i = cast_int(nodefromval(n) - gnode(t, 0)); /* key index in hash table */ in findindex() 348 for (i -= asize; cast_int(i) < sizenode(t); i++) { /* hash part */ in luaH_next() 687 gnext(othern) = cast_int(f - othern); /* rechain to point to 'f' */ in luaH_newkey() 690 gnext(f) += cast_int(mp - f); /* correct 'next' */ in luaH_newkey() 698 gnext(f) = cast_int((mp + gnext(mp)) - f); /* chain new position */ in luaH_newkey() 700 gnext(mp) = cast_int(f - mp); in luaH_newkey()
|
A D | ldebug.h | 14 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
|
A D | llex.h | 46 #define NUM_RESERVED (cast_int(TK_WHILE-FIRST_RESERVED + 1))
|
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)))))
|
A D | lobject.c | 274 #define MAXLASTD cast_int(LUA_MAXINTEGER % 10) 445 char *bf = getbuff(buff, cast_int(slen)); in addstr2buff() 447 addsize(buff, cast_int(slen)); in addstr2buff()
|
A D | ldo.c | 232 int needed = cast_int(L->top - L->stack) + n; in luaD_growstack() 258 res = cast_int(lim - L->stack) + 1; /* part of stack in use */ in stackinuse() 528 int narg = cast_int(L->top - func) - 1; in luaD_precall() 541 int narg = cast_int(L->top - func) - 1; /* number of real arguments */ in luaD_precall() 799 : cast_int(L->top - (L->ci->func + 1)); in lua_resume()
|
A D | lcode.c | 549 k = cast_int(ivalue(idx)); in addk() 656 luaK_codeAsBx(fs, OP_LOADI, reg, cast_int(i)); in luaK_int() 665 luaK_codeAsBx(fs, OP_LOADF, reg, cast_int(fi)); in luaK_float() 1246 *pi = int2sC(cast_int(i)); in isSCnumber() 1280 t->u.ind.idx = cast_int(k->u.ival); /* int. constant in proper range */ in luaK_indexed() 1389 int v2 = int2sC(cast_int(e2->u.ival)); /* immediate operand */ in codebini() 1407 int v2 = cast_int(i2); in finishbinexpneg()
|
A D | lapi.c | 108 int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; in lua_checkstack() 165 : cast_int(L->top - L->ci->func) + idx; in lua_absindex() 170 return cast_int(L->top - (L->ci->func + 1)); in lua_gettop() 1064 ci->u2.funcidx = cast_int(savestack(L, c.func)); in lua_pcallk() 1149 res = cast_int(gettotalbytes(g) >> 10); in lua_gc() 1153 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
|
A D | llimits.h | 128 #define cast_int(i) cast(int, (i)) macro
|
A D | lvm.c | 764 #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) 844 int total = cast_int(top - 1 - (base + a)); /* yet to concatenate */ in luaV_finishOp() 1641 b = cast_int(L->top - ra); in luaV_execute() 1658 luaD_poscall(L, ci, cast_int(L->top - ra)); /* finish caller */ in luaV_execute() 1670 n = cast_int(L->top - ra); /* get what is available */ in luaV_execute() 1790 n = cast_int(L->top - ra) - 1; /* get up to the top */ in luaV_execute()
|
A D | lstate.h | 142 #define stacksize(th) cast_int((th)->stack_last - (th)->stack)
|
A D | ltm.c | 241 int actual = cast_int(L->top - ci->func) - 1; /* number of arguments */ in luaT_adjustvarargs()
|
A D | lstring.c | 28 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*))
|
A D | lfunc.c | 129 int idx = cast_int(level - L->ci->func); /* variable index */ in checkclosemth()
|
A D | lundump.c | 89 return cast_int(loadUnsigned(S, INT_MAX)); in loadInt()
|
A D | lstate.c | 340 luaD_reallocstack(L, cast_int(ci->top - L->stack), 0); in luaE_resetthread()
|
A D | lobject.h | 774 (check_exp((size&(size-1))==0, (cast_int((s) & ((size)-1)))))
|
A D | ldebug.c | 686 cast_int(cast(StkId, o) - (ci->func + 1)), &name); in varinfo()
|
A D | lparser.c | 392 for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) { in searchvar()
|
Completed in 37 milliseconds