operation over bits
Methods
(.&.) :: bits -> bits -> bitsinfixl 7(.|.) :: bits -> bits -> bitsinfixl 5(.^.) :: bits -> bits -> bitsinfixl 6(.<<.) :: bits -> CountOf Bool -> bitsinfixl 8(.>>.) :: bits -> CountOf Bool -> bitsinfixl 8bit :: Offset Bool -> bitsconstruct a bit set with the bit at the given index set.
isBitSet :: bits -> Offset Bool -> Booltest the bit at the given index is set
setBit :: bits -> Offset Bool -> bitsset the bit at the given index
clearBit :: bits -> Offset Bool -> bitsclear the bit at the given index
Instances13BitOps, …
BitOps Word128Defined in basement-0.0.16 · Basement.BitsBitOps Word256Defined in basement-0.0.16 · Basement.BitsBitOps Int16Defined in basement-0.0.16 · Basement.BitsBitOps Int32Defined in basement-0.0.16 · Basement.BitsBitOps Int64Defined in basement-0.0.16 · Basement.BitsBitOps Int8Defined in basement-0.0.16 · Basement.BitsBitOps Word16Defined in basement-0.0.16 · Basement.BitsBitOps Word32Defined in basement-0.0.16 · Basement.BitsBitOps Word64Defined in basement-0.0.16 · Basement.BitsBitOps Word8Defined in basement-0.0.16 · Basement.BitsBitOps BoolDefined in basement-0.0.16 · Basement.BitsBitOps WordDefined in basement-0.0.16 · Basement.BitsSizeValid n => BitOps (Bits n)Defined in basement-0.0.16 · Basement.Bits