wide-word-0.1.9.0: Data types for large but fixed width signed and unsigned integers
Safe HaskellNone
LanguageHaskell2010

Data.WideWord.Int256

Documentation

data Int256 Source #

Constructors

Int256 

Fields

Instances

Instances details
Binary Int256 Source #

Since: 0.1.5.0

Instance details

Defined in Data.WideWord.Int256

Methods

put :: Int256 -> Put

get :: Get Int256

putList :: [Int256] -> Put

NFData Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

rnf :: Int256 -> ()

Bits Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

(.&.) :: Int256 -> Int256 -> Int256

(.|.) :: Int256 -> Int256 -> Int256

xor :: Int256 -> Int256 -> Int256

complement :: Int256 -> Int256

shift :: Int256 -> Int -> Int256

rotate :: Int256 -> Int -> Int256

zeroBits :: Int256

bit :: Int -> Int256

setBit :: Int256 -> Int -> Int256

clearBit :: Int256 -> Int -> Int256

complementBit :: Int256 -> Int -> Int256

testBit :: Int256 -> Int -> Bool

bitSizeMaybe :: Int256 -> Maybe Int

bitSize :: Int256 -> Int

isSigned :: Int256 -> Bool

shiftL :: Int256 -> Int -> Int256

unsafeShiftL :: Int256 -> Int -> Int256

shiftR :: Int256 -> Int -> Int256

unsafeShiftR :: Int256 -> Int -> Int256

rotateL :: Int256 -> Int -> Int256

rotateR :: Int256 -> Int -> Int256

popCount :: Int256 -> Int

FiniteBits Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Data Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

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

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

toConstr :: Int256 -> Constr

dataTypeOf :: Int256 -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int256)

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

gmapT :: (forall b. Data b => b -> b) -> Int256 -> Int256

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

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

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

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

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

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

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

Bounded Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Enum Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Storable Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

sizeOf :: Int256 -> Int

alignment :: Int256 -> Int

peekElemOff :: Ptr Int256 -> Int -> IO Int256

pokeElemOff :: Ptr Int256 -> Int -> Int256 -> IO ()

peekByteOff :: Ptr b -> Int -> IO Int256

pokeByteOff :: Ptr b -> Int -> Int256 -> IO ()

peek :: Ptr Int256 -> IO Int256

poke :: Ptr Int256 -> Int256 -> IO ()

Generic Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Associated Types

type Rep Int256 
Instance details

Defined in Data.WideWord.Int256

type Rep Int256 = D1 ('MetaData "Int256" "Data.WideWord.Int256" "wide-word-0.1.9.0-ItOYbmdwb2OJJJcIc19D4D" 'False) (C1 ('MetaCons "Int256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "int256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "int256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))

Methods

from :: Int256 -> Rep Int256 x

to :: Rep Int256 x -> Int256

Ix Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

range :: (Int256, Int256) -> [Int256]

index :: (Int256, Int256) -> Int256 -> Int

unsafeIndex :: (Int256, Int256) -> Int256 -> Int

inRange :: (Int256, Int256) -> Int256 -> Bool

rangeSize :: (Int256, Int256) -> Int

unsafeRangeSize :: (Int256, Int256) -> Int

Num Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Read Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

readsPrec :: Int -> ReadS Int256

readList :: ReadS [Int256]

readPrec :: ReadPrec Int256

readListPrec :: ReadPrec [Int256]

Integral Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Real Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

toRational :: Int256 -> Rational

Show Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

showsPrec :: Int -> Int256 -> ShowS

show :: Int256 -> String

showList :: [Int256] -> ShowS

Eq Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

(==) :: Int256 -> Int256 -> Bool

(/=) :: Int256 -> Int256 -> Bool

Ord Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

compare :: Int256 -> Int256 -> Ordering

(<) :: Int256 -> Int256 -> Bool

(<=) :: Int256 -> Int256 -> Bool

(>) :: Int256 -> Int256 -> Bool

(>=) :: Int256 -> Int256 -> Bool

max :: Int256 -> Int256 -> Int256

min :: Int256 -> Int256 -> Int256

Hashable Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

hashWithSalt :: Int -> Int256 -> Int

hash :: Int256 -> Int

Prim Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

Methods

sizeOfType# :: Proxy Int256 -> Int#

sizeOf# :: Int256 -> Int#

alignmentOfType# :: Proxy Int256 -> Int#

alignment# :: Int256 -> Int#

indexByteArray# :: ByteArray# -> Int# -> Int256

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

writeByteArray# :: MutableByteArray# s -> Int# -> Int256 -> State# s -> State# s

setByteArray# :: MutableByteArray# s -> Int# -> Int# -> Int256 -> State# s -> State# s

indexOffAddr# :: Addr# -> Int# -> Int256

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

writeOffAddr# :: Addr# -> Int# -> Int256 -> State# s -> State# s

setOffAddr# :: Addr# -> Int# -> Int# -> Int256 -> State# s -> State# s

type Rep Int256 Source # 
Instance details

Defined in Data.WideWord.Int256

type Rep Int256 = D1 ('MetaData "Int256" "Data.WideWord.Int256" "wide-word-0.1.9.0-ItOYbmdwb2OJJJcIc19D4D" 'False) (C1 ('MetaCons "Int256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "int256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "int256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64))))