hw-bits-0.6.0.0: Bit manipulation

Copyright2016 John Ky
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.PopCount.PopCount1

Description

Succinct operations.

Synopsis

Documentation

class PopCount1 v where Source #

The number of one bits in the value.

Minimal complete definition

popCount1

Methods

popCount1 :: v -> Count Source #

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 #