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