creates a mask with 'n' 1 bits at position 'p'
(n, p uint)
| 129 | |
| 130 | // creates a mask with 'n' 1 bits at position 'p' |
| 131 | func mask1(n, p uint) instruction { return ^(^instruction(0) << n) << p } |
| 132 | |
| 133 | // creates a mask with 'n' 0 bits at position 'p' |
| 134 | func mask0(n, p uint) instruction { return ^mask1(n, p) } |
no test coverage detected
searching dependent graphs…