Copyright | (C) 2019 QBayLogic |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | Christiaan Baaij <christiaan.baaij@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Documentation
Determine whether value is odd or even
Check if value is even
>>>
even (4 :: Unsigned 4)
True
Check if value is odd
>>>
odd (4 :: Unsigned 4)
False
Instances
Parity Bool Source # | |
Parity Int Source # | |
Parity Int8 Source # | |
Parity Int16 Source # | |
Parity Int32 Source # | |
Parity Int64 Source # | |
Parity Integer Source # | |
Parity Word Source # | |
Parity Word8 Source # | |
Parity Word16 Source # | |
Parity Word32 Source # | |
Parity Word64 Source # | |
Parity CUShort Source # | |
KnownNat n => Parity (BitVector n) Source # | |
(KnownNat n, 1 <= n) => Parity (Index n) Source # | |
KnownNat n => Parity (Unsigned n) Source # | |
KnownNat n => Parity (Signed n) Source # | |
Parity a => Parity (Zeroing a) Source # | |
Parity a => Parity (Wrapping a) Source # | |
Parity a => Parity (Saturating a) Source # | |
Defined in Clash.Num.Saturating even :: Saturating a -> Bool Source # odd :: Saturating a -> Bool Source # | |
Parity a => Parity (Overflowing a) Source # | |
Defined in Clash.Num.Overflowing even :: Overflowing a -> Bool Source # odd :: Overflowing a -> Bool Source # | |
Parity a => Parity (Erroring a) Source # | |