| Copyright | (C) 2013-2015, University of Twente |
|---|---|
| License | BSD2 (see the file LICENSE) |
| Maintainer | Christiaan Baaij <christiaan.baaij@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
| Extensions |
|
CLaSH.Prelude.BitReduction
Description
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