ContentsIndex
Org.Org.Semantic.HBase.Basic.BitIntegers
Synopsis
class Signable unsigned signed | unsigned -> signed, signed -> unsigned where
castToSigned :: unsigned -> signed
castToUnsigned :: signed -> unsigned
class HiLo part whole | part -> whole, whole -> part where
loPart :: whole -> part
hiPart :: whole -> part
makeHiLo :: part -> part -> whole
loPartSigned :: (Signable unsignedWhole signedWhole, HiLo unsignedPart unsignedWhole) => signedWhole -> unsignedPart
hiPartSigned :: (Signable unsignedWhole signedWhole, HiLo unsignedPart unsignedWhole, Signable unsignedPart signedPart) => signedWhole -> signedPart
Documentation
class Signable unsigned signed | unsigned -> signed, signed -> unsigned where
Methods
castToSigned :: unsigned -> signed
This does a bit-conversion from unsigned to signed, assuming the usual representations.
castToUnsigned :: signed -> unsigned
This does a bit-conversion from signed to unsigned, assuming the usual representations.
Instances
Signable Word8 Int8
Signable Word16 Int16
Signable Word32 Int32
Signable Word64 Int64
class HiLo part whole | part -> whole, whole -> part where
Methods
loPart :: whole -> part
Get the low half of whole.
hiPart :: whole -> part
Get the high half of whole.
makeHiLo :: part -> part -> whole
Make a whole from high and low parts respectively.
Instances
HiLo Word8 Word16
HiLo Word16 Word32
HiLo Word32 Word64
loPartSigned :: (Signable unsignedWhole signedWhole, HiLo unsignedPart unsignedWhole) => signedWhole -> unsignedPart
Get the unsigned low half of a signed whole.
hiPartSigned :: (Signable unsignedWhole signedWhole, HiLo unsignedPart unsignedWhole, Signable unsignedPart signedPart) => signedWhole -> signedPart
Get the signed high half of a signed whole.
Produced by Haddock version 0.6