Open on99 opened 2 years ago
Not is fairly trivially implemented with
func Not(a bitmap.Bitmap) bitmap.Bitmap {
var res bitmap.Bitmap
a.Clone(&res)
res.Ones()
//rfunc clears bits in res if they are set in a
rFunc := func(k uint32) {
res.Remove(k)
}
a.Range(rFunc)
return res
}
The Not and other functions are implemented in https://github.com/chippyash/logicgate.git
is it possible to support
not
operation? https://en.wikipedia.org/wiki/Bitwise_operation#NOT