** Shift left operation. (Shift right just negates 'y'.) */
| 591 | ** Shift left operation. (Shift right just negates 'y'.) |
| 592 | */ |
| 593 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { |
| 594 | if (y < 0) { /* shift right? */ |
| 595 | if (y <= -NBITS) return 0; |
| 596 | else return intop(>>, x, -y); |
| 597 | } |
| 598 | else { /* shift left */ |
| 599 | if (y >= NBITS) return 0; |
| 600 | else return intop(<<, x, y); |
| 601 | } |
| 602 | } |
| 603 | |
| 604 | |
| 605 | /* |
no outgoing calls
no test coverage detected