Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
countBits :: (Integral n, Bits n) => n -> n -> Int Source
Counts the number of bits that differ between two numbers.
registers :: [State -> F18Word] -> State -> State -> Distance Source
Return a distance function that counts the different bits between the given registers. You could use it like `compareRegisters [s, t]`.