** Shift left operation. (Shift right just negates 'y'.) */
| 474 | ** Shift left operation. (Shift right just negates 'y'.) |
| 475 | */ |
| 476 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { |
| 477 | if (y < 0) { /* shift right? */ |
| 478 | if (y <= -NBITS) return 0; |
| 479 | else return intop(>>, x, -y); |
| 480 | } |
| 481 | else { /* shift left */ |
| 482 | if (y >= NBITS) return 0; |
| 483 | else return intop(<<, x, y); |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | |
| 488 | /* |
no outgoing calls
no test coverage detected