Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class (Type a, Bits a, Integral a, Bounded a, Size a ~ Range a) => Bits a where
- (.&.) :: Data a -> Data a -> Data a
- (.|.) :: Data a -> Data a -> Data a
- xor :: Data a -> Data a -> Data a
- complement :: Data a -> Data a
- bit :: Data Index -> Data a
- setBit :: Data a -> Data Index -> Data a
- clearBit :: Data a -> Data Index -> Data a
- complementBit :: Data a -> Data Index -> Data a
- testBit :: Data a -> Data Index -> Data Bool
- shiftLU :: Data a -> Data Index -> Data a
- shiftRU :: Data a -> Data Index -> Data a
- shiftL :: Data a -> Data IntN -> Data a
- shiftR :: Data a -> Data IntN -> Data a
- rotateLU :: Data a -> Data Index -> Data a
- rotateRU :: Data a -> Data Index -> Data a
- rotateL :: Data a -> Data IntN -> Data a
- rotateR :: Data a -> Data IntN -> Data a
- reverseBits :: Data a -> Data a
- bitScan :: Data a -> Data Index
- bitCount :: Data a -> Data Index
- bitSize :: Data a -> Data Index
- bitSize' :: Data a -> Index
- isSigned :: Data a -> Data Bool
- isSigned' :: Data a -> Bool
- finiteBitSize :: FiniteBits b => b -> Int
- (⊕) :: Bits a => Data a -> Data a -> Data a
- (.<<.) :: Bits a => Data a -> Data Index -> Data a
- (.>>.) :: Bits a => Data a -> Data Index -> Data a
- allOnes :: Bits a => Data a
- oneBits :: Bits a => Data Index -> Data a
- lsbs :: Bits a => Data Index -> Data a -> Data a
Documentation
class (Type a, Bits a, Integral a, Bounded a, Size a ~ Range a) => Bits a where Source
Nothing
(.&.) :: Data a -> Data a -> Data a Source
(.|.) :: Data a -> Data a -> Data a Source
xor :: Data a -> Data a -> Data a Source
complement :: Data a -> Data a Source
bit :: Data Index -> Data a Source
setBit :: Data a -> Data Index -> Data a Source
clearBit :: Data a -> Data Index -> Data a Source
complementBit :: Data a -> Data Index -> Data a Source
testBit :: Data a -> Data Index -> Data Bool Source
shiftLU :: Data a -> Data Index -> Data a Source
shiftRU :: Data a -> Data Index -> Data a Source
shiftL :: Data a -> Data IntN -> Data a Source
shiftR :: Data a -> Data IntN -> Data a Source
rotateLU :: Data a -> Data Index -> Data a Source
rotateRU :: Data a -> Data Index -> Data a Source
rotateL :: Data a -> Data IntN -> Data a Source
rotateR :: Data a -> Data IntN -> Data a Source
reverseBits :: Data a -> Data a Source
bitScan :: Data a -> Data Index Source
bitCount :: Data a -> Data Index Source
bitSize :: Data a -> Data Index Source
bitSize' :: Data a -> Index Source
finiteBitSize :: FiniteBits b => b -> Int Source