(value, bits ref.Val)
| 814 | } |
| 815 | |
| 816 | func bitShiftRightIntInt(value, bits ref.Val) ref.Val { |
| 817 | v := value.(types.Int) |
| 818 | bs := bits.(types.Int) |
| 819 | if bs < types.IntZero { |
| 820 | return types.NewErr("math.bitShiftRight() negative offset: %d", bs) |
| 821 | } |
| 822 | return types.Int(types.Uint(v) >> bs) |
| 823 | } |
| 824 | |
| 825 | func bitShiftRightUintInt(value, bits ref.Val) ref.Val { |
| 826 | v := value.(types.Uint) |