hw-bits-0.7.0.1: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.PopCount.PopCount1

Documentation

class PopCount1 v where Source #

Minimal complete definition

popCount1

Methods

popCount1 :: v -> Count Source #

The number of 0-bits in the value.

Instances

PopCount1 Bool Source # 

Methods

popCount1 :: Bool -> Count Source #

PopCount1 Word8 Source # 
PopCount1 Word16 Source # 
PopCount1 Word32 Source # 
PopCount1 Word64 Source # 
PopCount1 a => PopCount1 [a] Source # 

Methods

popCount1 :: [a] -> Count Source #

PopCount1 (Vector Word8) Source # 
PopCount1 (Vector Word16) Source # 
PopCount1 (Vector Word32) Source # 
PopCount1 (Vector Word64) Source # 
PopCount1 (Vector Word8) Source # 
PopCount1 (Vector Word16) Source # 
PopCount1 (Vector Word32) Source # 
PopCount1 (Vector Word64) Source # 
PopCount1 (Broadword Word8) Source # 
PopCount1 (Broadword Word16) Source # 
PopCount1 (Broadword Word32) Source # 
PopCount1 (Broadword Word64) Source # 
PopCount1 (Builtin Word8) Source # 
PopCount1 (Builtin Word16) Source # 
PopCount1 (Builtin Word32) Source # 
PopCount1 (Builtin Word64) Source #