(value, bits ref.Val)
| 796 | } |
| 797 | |
| 798 | func bitShiftLeftIntInt(value, bits ref.Val) ref.Val { |
| 799 | v := value.(types.Int) |
| 800 | bs := bits.(types.Int) |
| 801 | if bs < types.IntZero { |
| 802 | return types.NewErr("math.bitShiftLeft() negative offset: %d", bs) |
| 803 | } |
| 804 | return v << bs |
| 805 | } |
| 806 | |
| 807 | func bitShiftLeftUintInt(value, bits ref.Val) ref.Val { |
| 808 | v := value.(types.Uint) |