(val *big.Int)
| 207 | } |
| 208 | |
| 209 | func negativeTwosComplementToInt(val *big.Int) *big.Int { |
| 210 | inverted := new(big.Int).Not(val) |
| 211 | mask := new(big.Int).Lsh(big.NewInt(1), uint(val.BitLen())) |
| 212 | inverted.And(inverted, mask.Sub(mask, big.NewInt(1))) |
| 213 | inverted.Add(inverted, big.NewInt(1)) |
| 214 | val.Neg(inverted) |
| 215 | return val |
| 216 | } |
| 217 | |
| 218 | type action func(t *task, batch []uint64, resultsChan chan *Bitmap, wg *sync.WaitGroup) |
| 219 |
no test coverage detected
searching dependent graphs…