(l *State, r uint, i int)
| 10 | func mask(n uint) uint { return ^(math.MaxUint32 << n) } |
| 11 | |
| 12 | func shift(l *State, r uint, i int) int { |
| 13 | if i < 0 { |
| 14 | if i, r = -i, trim(r); i >= bitCount { |
| 15 | r = 0 |
| 16 | } else { |
| 17 | r >>= uint(i) |
| 18 | } |
| 19 | } else { |
| 20 | if i >= bitCount { |
| 21 | r = 0 |
| 22 | } else { |
| 23 | r <<= uint(i) |
| 24 | } |
| 25 | r = trim(r) |
| 26 | } |
| 27 | l.PushUnsigned(r) |
| 28 | return 1 |
| 29 | } |
| 30 | |
| 31 | func rotate(l *State, i int) int { |
| 32 | r := trim(CheckUnsigned(l, 1)) |
no test coverage detected