hw-bits-0.7.2.1: Bit manipulation

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Bits.Log2

Documentation

class Log2 a where Source #

Methods

log2 :: a -> Int Source #

Log base of the given value rounded down to the nearest integer

Instances
Log2 Word32 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Log2

Methods

log2 :: Word32 -> Int Source #

Log2 Word64 Source # 
Instance details

Defined in HaskellWorks.Data.Bits.Log2

Methods

log2 :: Word64 -> Int Source #