** Convert a BinOpr to an OpCode (ORDER OPR - ORDER OP) */
| 1358 | ** Convert a BinOpr to an OpCode (ORDER OPR - ORDER OP) |
| 1359 | */ |
| 1360 | l_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 | /* |
no outgoing calls
no test coverage detected