** Shift left operation. (Shift right just negates 'y'.) */
| 785 | ** Shift left operation. (Shift right just negates 'y'.) |
| 786 | */ |
| 787 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { |
| 788 | if (y < 0) { /* shift right? */ |
| 789 | if (y <= -NBITS) return 0; |
| 790 | else return intop(>>, x, -y); |
| 791 | } |
| 792 | else { /* shift left */ |
| 793 | if (y >= NBITS) return 0; |
| 794 | else return intop(<<, x, y); |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | |
| 799 | /* |
no outgoing calls
no test coverage detected