MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / binopr2op

Function binopr2op

lib/lua/src/lcode.c:1360–1365  ·  view source on GitHub ↗

** Convert a BinOpr to an OpCode (ORDER OPR - ORDER OP) */

Source from the content-addressed store, hash-verified

1358** Convert a BinOpr to an OpCode (ORDER OPR - ORDER OP)
1359*/
1360l_sinline OpCode binopr2op (BinOpr opr, BinOpr baser, OpCode base) {
1361 lua_assert(baser <= opr &&
1362 ((baser == OPR_ADD && opr <= OPR_SHR) ||
1363 (baser == OPR_LT && opr <= OPR_LE)));
1364 return cast(OpCode, (cast_int(opr) - cast_int(baser)) + cast_int(base));
1365}
1366
1367
1368/*

Callers 3

codebinexpvalFunction · 0.85
codebinKFunction · 0.85
codeorderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected