** Shift left operation. (Shift right just negates 'y'.) */
| 778 | ** Shift left operation. (Shift right just negates 'y'.) |
| 779 | */ |
| 780 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { |
| 781 | if (y < 0) { /* shift right? */ |
| 782 | if (y <= -NBITS) return 0; |
| 783 | else return intop(>>, x, -y); |
| 784 | } |
| 785 | else { /* shift left */ |
| 786 | if (y >= NBITS) return 0; |
| 787 | else return intop(<<, x, y); |
| 788 | } |
| 789 | } |
| 790 | |
| 791 | |
| 792 | /* |
no outgoing calls
no test coverage detected