Searched refs:cast_int (Results 1 – 19 of 19) sorted by relevance
/external/lua/src/ |
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))
|
D | ltable.c | 46 #define MAXABITS cast_int(sizeof(int) * CHAR_BIT - 1) 124 return cast_int(u <= cast_uint(INT_MAX) ? u : ~u); in l_hashfloat() 298 i = cast_int(nodefromval(n) - gnode(t, 0)); /* key index in hash table */ in findindex() 315 for (i -= asize; cast_int(i) < sizenode(t); i++) { /* hash part */ in luaH_next() 651 gnext(othern) = cast_int(f - othern); /* rechain to point to 'f' */ in luaH_newkey() 654 gnext(f) += cast_int(mp - f); /* correct 'next' */ in luaH_newkey() 662 gnext(f) = cast_int((mp + gnext(mp)) - f); /* chain new position */ in luaH_newkey() 664 gnext(mp) = cast_int(f - mp); in luaH_newkey()
|
D | ldebug.h | 14 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
|
D | llex.h | 46 #define NUM_RESERVED (cast_int(TK_WHILE-FIRST_RESERVED + 1))
|
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)))))
|
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()
|
D | ldo.c | 218 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; in luaD_growstack() 242 return cast_int(lim - L->stack) + 1; /* part of stack in use */ in stackinuse() 477 int narg = cast_int(L->top - func) - 1; in luaD_call() 490 int narg = cast_int(L->top - func) - 1; /* number of real arguments */ in luaD_call() 695 : cast_int(L->top - (L->ci->func + 1)); in lua_resume()
|
D | lcode.c | 555 k = cast_int(ivalue(idx)); in addk() 661 luaK_codeAsBx(fs, OP_LOADI, reg, cast_int(i)); in luaK_int() 670 luaK_codeAsBx(fs, OP_LOADF, reg, cast_int(fi)); in luaK_float() 1247 *pi = int2sC(cast_int(i)); in isSCnumber() 1281 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()
|
D | lapi.c | 107 int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; in lua_checkstack() 164 : cast_int(L->top - L->ci->func) + idx; in lua_absindex() 169 return cast_int(L->top - (L->ci->func + 1)); in lua_gettop() 1038 ci->u2.funcidx = cast_int(savestack(L, c.func)); in lua_pcallk() 1124 res = cast_int(gettotalbytes(g) >> 10); in lua_gc() 1128 res = cast_int(gettotalbytes(g) & 0x3ff); in lua_gc()
|
D | llimits.h | 128 #define cast_int(i) cast(int, (i)) macro
|
D | lvm.c | 762 #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) 842 int total = cast_int(top - 1 - (base + a)); /* yet to concatenate */ in luaV_finishOp() 1625 b = cast_int(L->top - ra); in luaV_execute() 1644 luaD_poscall(L, ci, cast_int(L->top - ra)); in luaV_execute() 1655 n = cast_int(L->top - ra); /* get what is available */ in luaV_execute() 1764 n = cast_int(L->top - ra) - 1; /* get up to the top */ in luaV_execute()
|
D | lstring.c | 38 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*))
|
D | ltm.c | 240 int actual = cast_int(L->top - ci->func) - 1; /* number of arguments */ in luaT_adjustvarargs()
|
D | lfunc.c | 131 int idx = cast_int(level - L->ci->func); in varerror()
|
D | lundump.c | 89 return cast_int(loadUnsigned(S, INT_MAX)); in loadInt()
|
D | lobject.h | 762 (check_exp((size&(size-1))==0, (cast_int((s) & ((size)-1)))))
|
D | ldebug.c | 688 cast_int(cast(StkId, o) - (ci->func + 1)), &name); in varinfo()
|
D | lparser.c | 392 for (i = cast_int(fs->nactvar) - 1; i >= 0; i--) { in searchvar()
|
/external/openscreen/discovery/mdns/ |
D | mdns_querier.cc | 129 uint16_t cast_int = static_cast<uint16_t>(type); in GetTypes() local 130 if (elements_.test(cast_int)) { in GetTypes()
|