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