Home
last modified time | relevance | path

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

/freebsd/contrib/lua/src/
H A Dlgc.h60 #define resetbits(x,m) ((x) &= cast_byte(~(m)))
102 #define luaC_white(g) cast_byte((g)->currentwhite & WHITEBITS)
117 #define setage(o,a) ((o)->marked = cast_byte(((o)->marked & (~AGEBITS)) | a))
H A Dlstring.c46 h ^= ((h<<5) + (h>>2) + cast_byte(str[l - 1])); in luaS_hash()
210 ts->shrlen = cast_byte(l); in internshrstr()
H A Dlfunc.c30 c->nupvalues = cast_byte(nupvals); in luaF_newCclosure()
39 c->nupvalues = cast_byte(nupvals); in luaF_newLclosure()
H A Dlgc.c72 (x->marked = cast_byte((x->marked & ~maskcolors) | luaC_white(g)))
80 (x->marked = cast_byte((x->marked & ~WHITEBITS) | bitmask(BLACKBIT)))
836 curr->marked = cast_byte((marked & ~maskgcbits) | white); in sweeplist()
1135 curr->marked = cast_byte(marked | G_SURVIVAL | white); in sweepgen()
1157 p->marked = cast_byte((p->marked & ~maskgcbits) | white); in whitelist()
1560 g->currentwhite = cast_byte(otherwhite(g)); /* flip current white */ in atomic()
H A Dllimits.h143 #define cast_byte(i) cast(lu_byte, (i)) macro
H A Dltm.c64 events->flags |= cast_byte(1u<<event); /* cache this fact */ in luaT_gettm()
H A Dltable.c499 t->lsizenode = cast_byte(lsize); in setnodevector()
630 t->flags = cast_byte(maskflags); /* table has no metamethod fields */ in luaH_new()
H A Dlundump.c65 return cast_byte(b); in loadByte()
H A Dllex.c77 ts->extra = cast_byte(i+1); /* reserved word */ in luaX_init()
H A Dlobject.h735 #define setrealasize(t) ((t)->flags &= cast_byte(~BITRAS))
H A Dldebug.c139 L->hookmask = cast_byte(mask); in lua_sethook()
H A Dlparser.c375 up->idx = cast_byte(v->u.info); in newupvalue()
983 f->numparams = cast_byte(fs->nactvar); in parlist()
H A Dldo.c855 L->status = cast_byte(status); /* mark thread as 'dead' */ in lua_resume()
H A Dlcode.c472 fs->f->maxstacksize = cast_byte(newstack); in luaK_checkstack()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlfunc.c23 c->c.nupvalues = cast_byte(n); in luaF_newCclosure()
31 c->l.nupvalues = cast_byte(n); in luaF_newLclosure()
H A Dltm.c54 events->flags |= cast_byte(1u<<event); /* cache this fact */ in luaT_gettm()
H A Dllimits.h91 #define cast_byte(i) cast(lu_byte, (i)) macro
H A Dltable.c298 t->lsizenode = cast_byte(lsize); in setnodevector()
370 t->flags = cast_byte(~0); in luaH_new()
H A Dlstring.c54 h = h ^ ((h<<5) + (h>>2) + cast_byte(str[l1 - 1])); in luaS_hash()
H A Dlgc.c58 (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g)))
745 gch(curr)->marked = cast_byte((marked & toclear) | toset); in sweeplist()
1032 g->currentwhite = cast_byte(otherwhite(g)); /* flip current white */ in atomic()
H A Dldo.c187 L->status = cast_byte(errcode); /* mark it as dead */ in luaD_throw()
639 L->status = cast_byte(status); /* mark thread as `dead' */ in lua_resume()
H A Dllex.c66 ts->tsv.extra = cast_byte(i+1); /* reserved word */ in luaX_init()
H A Dlparser.c204 fs->nactvar = cast_byte(fs->nactvar + nvars); in adjustlocalvars()
236 f->upvalues[fs->nups].idx = cast_byte(v->u.info); in newupvalue()
786 f->numparams = cast_byte(fs->nactvar); in parlist()
H A Dldebug.c68 L->hookmask = cast_byte(mask); in lua_sethook()
H A Dlcode.c267 fs->f->maxstacksize = cast_byte(newstack); in luaK_checkstack()