Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
reduceAnd :: (BitPack a, KnownNat (BitSize a)) => a -> Bit Source
Are all bits set to '1'?
>>>
pack (-2 :: Signed 6)
111110>>>
reduceAnd (-2 :: Signed 6)
0>>>
pack (-1 :: Signed 6)
111111>>>
reduceAnd (-1 :: Signed 6)
1