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

Function binopr2TM

lib/lua/src/lcode.c:1380–1383  ·  view source on GitHub ↗

** Convert a BinOpr to a tag method (ORDER OPR - ORDER TM) */

Source from the content-addressed store, hash-verified

1378** Convert a BinOpr to a tag method (ORDER OPR - ORDER TM)
1379*/
1380l_sinline TMS binopr2TM (BinOpr opr) {
1381 lua_assert(OPR_ADD <= opr && opr <= OPR_SHR);
1382 return cast(TMS, (cast_int(opr) - cast_int(OPR_ADD)) + cast_int(TM_ADD));
1383}
1384
1385
1386/*

Callers 2

codebinexpvalFunction · 0.85
codebinKFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected