wide-word-0.1.8.1: Data types for large but fixed width signed and unsigned integers

Safe Haskell | None
Language | Haskell2010

Data.WideWord.Word256

# Documentation

data Word256 Source #

Constructors

Word256 |

Fields

- word256hi :: !Word64
- word256m1 :: !Word64
- word256m0 :: !Word64
- word256lo :: !Word64

#### Instances

Instances details

Binary Word256 Source # | Since: 0.1.5.0
Instance details Defined in Data.WideWord.Word256 Methods put :: Word256 -> Put Source # get :: Get Word256 Source # putList :: [Word256] -> Put Source #
NFData Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods rnf :: Word256 -> () Source #
Bits Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Methods

(.&.) :: Word256 -> Word256 -> Word256 Source #

(.|.) :: Word256 -> Word256 -> Word256 Source #

xor :: Word256 -> Word256 -> Word256 Source #

complement :: Word256 -> Word256 Source #

shift :: Word256 -> Int -> Word256 Source #

rotate :: Word256 -> Int -> Word256 Source #

zeroBits :: Word256 Source #

bit :: Int -> Word256 Source #

setBit :: Word256 -> Int -> Word256 Source #

clearBit :: Word256 -> Int -> Word256 Source #

complementBit :: Word256 -> Int -> Word256 Source #

testBit :: Word256 -> Int -> Bool Source #

bitSizeMaybe :: Word256 -> Maybe Int Source #

bitSize :: Word256 -> Int Source #

isSigned :: Word256 -> Bool Source #

shiftL :: Word256 -> Int -> Word256 Source #

unsafeShiftL :: Word256 -> Int -> Word256 Source #

shiftR :: Word256 -> Int -> Word256 Source #

unsafeShiftR :: Word256 -> Int -> Word256 Source #

rotateL :: Word256 -> Int -> Word256 Source #

rotateR :: Word256 -> Int -> Word256 Source #

popCount :: Word256 -> Int Source #

FiniteBits Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods finiteBitSize :: Word256 -> Int Source # countLeadingZeros :: Word256 -> Int Source # countTrailingZeros :: Word256 -> Int Source #
Data Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Methods

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

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

toConstr :: Word256 -> Constr Source #

dataTypeOf :: Word256 -> DataType Source #

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

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

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

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

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

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

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

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

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

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

Bounded Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods minBound :: Word256 Source # maxBound :: Word256 Source #
Enum Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Methods

succ :: Word256 -> Word256 Source #

pred :: Word256 -> Word256 Source #

toEnum :: Int -> Word256 Source #

fromEnum :: Word256 -> Int Source #

enumFrom :: Word256 -> [Word256] Source #

enumFromThen :: Word256 -> Word256 -> [Word256] Source #

enumFromTo :: Word256 -> Word256 -> [Word256] Source #

enumFromThenTo :: Word256 -> Word256 -> Word256 -> [Word256] Source #

Storable Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Methods

sizeOf :: Word256 -> Int Source #

alignment :: Word256 -> Int Source #

peekElemOff :: Ptr Word256 -> Int -> IO Word256 Source #

pokeElemOff :: Ptr Word256 -> Int -> Word256 -> IO () Source #

peekByteOff :: Ptr b -> Int -> IO Word256 Source #

pokeByteOff :: Ptr b -> Int -> Word256 -> IO () Source #

peek :: Ptr Word256 -> IO Word256 Source #

poke :: Ptr Word256 -> Word256 -> IO () Source #

Generic Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Associated Types

type Rep Word256 |

Instance details

Defined in Data.WideWord.Word256

type Rep Word256 = D1 ('MetaData "Word256" "Data.WideWord.Word256" "wide-word-0.1.8.1-LTrmCJN05el1haHeL5Fg3U" 'False) (C1 ('MetaCons "Word256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "word256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "word256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))

Methods

from :: Word256 -> Rep Word256 x Source #

to :: Rep Word256 x -> Word256 Source #

Ix Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods range :: (Word256, Word256) -> [Word256] Source # index :: (Word256, Word256) -> Word256 -> Int Source # unsafeIndex :: (Word256, Word256) -> Word256 -> Int Source # inRange :: (Word256, Word256) -> Word256 -> Bool Source # rangeSize :: (Word256, Word256) -> Int Source # unsafeRangeSize :: (Word256, Word256) -> Int Source #
Num Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods (+) :: Word256 -> Word256 -> Word256 Source # (-) :: Word256 -> Word256 -> Word256 Source # (*) :: Word256 -> Word256 -> Word256 Source # negate :: Word256 -> Word256 Source # abs :: Word256 -> Word256 Source # signum :: Word256 -> Word256 Source # fromInteger :: Integer -> Word256 Source #
Read Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods readsPrec :: Int -> ReadS Word256 Source # readList :: ReadS [Word256] Source # readPrec :: ReadPrec Word256 Source # readListPrec :: ReadPrec [Word256] Source #
Integral Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Methods

quot :: Word256 -> Word256 -> Word256 Source #

rem :: Word256 -> Word256 -> Word256 Source #

div :: Word256 -> Word256 -> Word256 Source #

mod :: Word256 -> Word256 -> Word256 Source #

quotRem :: Word256 -> Word256 -> (Word256, Word256) Source #

divMod :: Word256 -> Word256 -> (Word256, Word256) Source #

toInteger :: Word256 -> Integer Source #

Real Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods toRational :: Word256 -> Rational Source #
Show Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods showsPrec :: Int -> Word256 -> ShowS Source # show :: Word256 -> String Source # showList :: [Word256] -> ShowS Source #
Eq Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods (==) :: Word256 -> Word256 -> Bool Source # (/=) :: Word256 -> Word256 -> Bool Source #
Ord Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods compare :: Word256 -> Word256 -> Ordering Source # (<) :: Word256 -> Word256 -> Bool Source # (<=) :: Word256 -> Word256 -> Bool Source # (>) :: Word256 -> Word256 -> Bool Source # (>=) :: Word256 -> Word256 -> Bool Source # max :: Word256 -> Word256 -> Word256 Source # min :: Word256 -> Word256 -> Word256 Source #
Hashable Word256 Source # |
Instance details Defined in Data.WideWord.Word256 Methods hashWithSalt :: Int -> Word256 -> Int Source # hash :: Word256 -> Int Source #
Prim Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

Methods

sizeOfType# :: Proxy Word256 -> Int# Source #

sizeOf# :: Word256 -> Int# Source #

alignmentOfType# :: Proxy Word256 -> Int# Source #

alignment# :: Word256 -> Int# Source #

indexByteArray# :: ByteArray# -> Int# -> Word256 Source #

readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, Word256 #) Source #

writeByteArray# :: MutableByteArray# s -> Int# -> Word256 -> State# s -> State# s Source #

setByteArray# :: MutableByteArray# s -> Int# -> Int# -> Word256 -> State# s -> State# s Source #

indexOffAddr# :: Addr# -> Int# -> Word256 Source #

readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, Word256 #) Source #

writeOffAddr# :: Addr# -> Int# -> Word256 -> State# s -> State# s Source #

setOffAddr# :: Addr# -> Int# -> Int# -> Word256 -> State# s -> State# s Source #

type Rep Word256 Source # |

Instance details

Defined in Data.WideWord.Word256

type Rep Word256 = D1 ('MetaData "Word256" "Data.WideWord.Word256" "wide-word-0.1.8.1-LTrmCJN05el1haHeL5Fg3U" 'False) (C1 ('MetaCons "Word256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "word256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "word256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))

showHexWord256 :: Word256 -> String Source #

zeroWord256 :: Word256 Source #