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

data Word24 #

24-bit unsigned integer type

Constructors

W24# Word# 

Instances

Bounded Word24 # 
Enum Word24 # 
Eq Word24 # 

Methods

(==) :: Word24 -> Word24 -> Bool #

(/=) :: Word24 -> Word24 -> Bool #

Integral Word24 # 
Data Word24 # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Word24 -> c Word24 #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Word24 #

toConstr :: Word24 -> Constr #

dataTypeOf :: Word24 -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Word24) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Word24) #

gmapT :: (forall b. Data b => b -> b) -> Word24 -> Word24 #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Word24 -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Word24 -> r #

gmapQ :: (forall d. Data d => d -> u) -> Word24 -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Word24 -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Word24 -> m Word24 #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Word24 -> m Word24 #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Word24 -> m Word24 #

Num Word24 # 
Ord Word24 # 
Read Word24 # 
Real Word24 # 
Show Word24 # 
Ix Word24 # 
Storable Word24 # 
Bits Word24 # 
FiniteBits Word24 # 
NFData Word24 # 

Methods

rnf :: Word24 -> () #

byteSwap24 :: Word24 -> Word24 #

Swap bytes in Word24.

Internal helpers

narrow24Word# :: Word# -> Word# #

narrowings represented as primop and# in GHC.

clz24# :: Word# -> Word# #

count leading zeros

ctz24# :: Word# -> Word# #

count trailing zeros

popCnt24# :: Word# -> Word# #

the number of set bits