basement-0.0.14: Foundation scrap box of array & string
Safe HaskellNone
LanguageHaskell2010

Basement.Types.Word128

Synopsis

Documentation

data Word128 Source #

128 bits Word

Constructors

Word128 !Word64 !Word64 

Instances

Instances details
Bounded Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Enum Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Eq Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Methods

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

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

Num Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Ord Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Show Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Storable Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Bits Word128 Source # 
Instance details

Defined in Basement.Types.Word128

HasNegation Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Integral Word128 Source # 
Instance details

Defined in Basement.Types.Word128

IsNatural Word128 Source # 
Instance details

Defined in Basement.Types.Word128

IsIntegral Word128 Source # 
Instance details

Defined in Basement.Types.Word128

Subtractive Word128 Source # 
Instance details

Defined in Basement.Numerical.Subtractive

Associated Types

type Difference Word128 Source #

Additive Word128 Source # 
Instance details

Defined in Basement.Numerical.Additive

IDivisible Word128 Source # 
Instance details

Defined in Basement.Numerical.Multiplicative

Multiplicative Word128 Source # 
Instance details

Defined in Basement.Numerical.Multiplicative

PrimMemoryComparable Word128 Source # 
Instance details

Defined in Basement.PrimType

PrimType Word128 Source # 
Instance details

Defined in Basement.PrimType

Associated Types

type PrimSize Word128 :: Nat Source #

NormalForm Word128 Source # 
Instance details

Defined in Basement.NormalForm

Methods

toNormalForm :: Word128 -> () Source #

BitOps Word128 Source # 
Instance details

Defined in Basement.Bits

FiniteBitsOps Word128 Source # 
Instance details

Defined in Basement.Bits

From Word8 Word128 Source # 
Instance details

Defined in Basement.From

Methods

from :: Word8 -> Word128 Source #

From Word16 Word128 Source # 
Instance details

Defined in Basement.From

Methods

from :: Word16 -> Word128 Source #

From Word32 Word128 Source # 
Instance details

Defined in Basement.From

Methods

from :: Word32 -> Word128 Source #

From Word64 Word128 Source # 
Instance details

Defined in Basement.From

Methods

from :: Word64 -> Word128 Source #

From Word128 Word256 Source # 
Instance details

Defined in Basement.From

Methods

from :: Word128 -> Word256 Source #

(KnownNat n, NatWithinBound Word128 n) => From (Zn n) Word128 Source # 
Instance details

Defined in Basement.From

Methods

from :: Zn n -> Word128 Source #

From (Zn64 n) Word128 Source # 
Instance details

Defined in Basement.From

Methods

from :: Zn64 n -> Word128 Source #

type NatNumMaxBound Word128 Source # 
Instance details

Defined in Basement.Nat

type NatNumMaxBound Word128 = 340282366920938463463374607431768211455
type Difference Word128 Source # 
Instance details

Defined in Basement.Numerical.Subtractive

type PrimSize Word128 Source # 
Instance details

Defined in Basement.PrimType

type PrimSize Word128 = 16

(+) :: Word128 -> Word128 -> Word128 Source #

Add 2 Word128

(-) :: Word128 -> Word128 -> Word128 Source #

Subtract 2 Word128

(*) :: Word128 -> Word128 -> Word128 Source #

Multiplication

quot :: Word128 -> Word128 -> Word128 Source #

Division

complement :: Word128 -> Word128 Source #

Bitwise complement

shiftL :: Word128 -> Int -> Word128 Source #

Bitwise Shift Left

shiftR :: Word128 -> Int -> Word128 Source #

Bitwise Shift Right

rotateL :: Word128 -> Int -> Word128 Source #

Bitwise rotate Left

rotateR :: Word128 -> Int -> Word128 Source #

Bitwise rotate Left

popCount :: Word128 -> Int Source #

Population count