** Code bitwise operations; they are all commutative, so the function ** tries to put an integer constant as the 2nd operand (a K operand). */
| 1532 | ** tries to put an integer constant as the 2nd operand (a K operand). |
| 1533 | */ |
| 1534 | static void codebitwise (FuncState *fs, BinOpr opr, |
| 1535 | expdesc *e1, expdesc *e2, int line) { |
| 1536 | int flip = 0; |
| 1537 | if (e1->k == VKINT) { |
| 1538 | swapexps(e1, e2); /* 'e2' will be the constant operand */ |
| 1539 | flip = 1; |
| 1540 | } |
| 1541 | if (e2->k == VKINT && luaK_exp2K(fs, e2)) /* K operand? */ |
| 1542 | codebinK(fs, opr, e1, e2, flip, line); |
| 1543 | else /* no constants */ |
| 1544 | codebinNoK(fs, opr, e1, e2, flip, line); |
| 1545 | } |
| 1546 | |
| 1547 | |
| 1548 | /* |
no test coverage detected