word24-2.0.1: 24-bit word and int types for GHC

Licensesee src/Data/LICENSE
Stabilityexperimental
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Word.Word24

Contents

Description

 

Synopsis

Word24 type

byteSwap24 :: Word24 -> Word24 Source

Swap bytes in Word24.

Internal helpers

narrow24Word# :: Word# -> Word# Source

narrowings represented as primop and# in GHC.

clz24# :: Word# -> Word# Source

count leading zeros

ctz24# :: Word# -> Word# Source

count trailing zeros

popCnt24# :: Word# -> Word# Source

the number of set bits