Home
last modified time | relevance | path

Searched refs:cast_byte (Results 1 – 14 of 14) sorted by relevance

/netbsd/src/external/mit/lua/dist/src/
Dlgc.h62 #define resetbits(x,m) ((x) &= cast_byte(~(m)))
104 #define luaC_white(g) cast_byte((g)->currentwhite & WHITEBITS)
119 #define setage(o,a) ((o)->marked = cast_byte(((o)->marked & (~AGEBITS)) | a))
Dlstring.c50 h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1])); in luaS_hash()
214 ts->shrlen = cast_byte(l); in internshrstr()
Dlfunc.c34 c->nupvalues = cast_byte(nupvals); in luaF_newCclosure()
43 c->nupvalues = cast_byte(nupvals); in luaF_newLclosure()
Dlgc.c75 (x->marked = cast_byte((x->marked & ~maskcolors) | luaC_white(g)))
83 (x->marked = cast_byte((x->marked & ~WHITEBITS) | bitmask(BLACKBIT)))
839 curr->marked = cast_byte((marked & ~maskgcbits) | white); in sweeplist()
1138 curr->marked = cast_byte(marked | G_SURVIVAL | white); in sweepgen()
1160 p->marked = cast_byte((p->marked & ~maskgcbits) | white); in whitelist()
1563 g->currentwhite = cast_byte(otherwhite(g)); /* flip current white */ in atomic()
Dllimits.h149 #define cast_byte(i) cast(lu_byte, (i)) macro
Dltm.c73 events->flags |= cast_byte(1u<<event); /* cache this fact */ in luaT_gettm()
Dltable.c509 t->lsizenode = cast_byte(lsize); in setnodevector()
640 t->flags = cast_byte(maskflags); /* table has no metamethod fields */ in luaH_new()
Dlundump.c69 return cast_byte(b); in loadByte()
Dllex.c81 ts->extra = cast_byte(i+1); /* reserved word */ in luaX_init()
Dlobject.h747 #define setrealasize(t) ((t)->flags &= cast_byte(~BITRAS))
Dldebug.c143 L->hookmask = cast_byte(mask); in lua_sethook()
Dlparser.c379 up->idx = cast_byte(v->u.info); in newupvalue()
987 f->numparams = cast_byte(fs->nactvar); in parlist()
Dldo.c859 L->status = cast_byte(status); /* mark thread as 'dead' */ in lua_resume()
Dlcode.c478 fs->f->maxstacksize = cast_byte(newstack); in luaK_checkstack()