Safe Haskell | None |
---|---|
Language | Haskell2010 |
GMP types.
- data MPZ = MPZ {}
- data MPQ = MPQ {}
- mpq_numref :: Ptr MPQ -> Ptr MPZ
- mpq_denref :: Ptr MPQ -> Ptr MPZ
- data MPF = MPF {}
- data GMPRandState = GMPRandState {
- gmprsSeed :: !MPZ
- gmprsAlg :: !GMPRandAlg
- gmprsAlgData :: !(Ptr ())
- newtype MPLimb = MPLimb Word64
- newtype MPLimbSigned = MPLimbSigned Int64
- newtype MPSize = MPSize Int64
- newtype MPExp = MPExp Int64
- newtype MPBitCnt = MPBitCnt Word64
- newtype GMPRandAlg = GMPRandAlg Word32
Documentation
mpq_numref :: Ptr MPQ -> Ptr MPZ Source #
Get pointers to numerator and denominator (these are macros in the C API).
mpq_denref :: Ptr MPQ -> Ptr MPZ Source #
Get pointers to numerator and denominator (these are macros in the C API).
data GMPRandState Source #
gmp_randstate_t
GMPRandState | |
|
Storable GMPRandState Source # | |
sizeOf :: GMPRandState -> Int # alignment :: GMPRandState -> Int # peekElemOff :: Ptr GMPRandState -> Int -> IO GMPRandState # pokeElemOff :: Ptr GMPRandState -> Int -> GMPRandState -> IO () # peekByteOff :: Ptr b -> Int -> IO GMPRandState # pokeByteOff :: Ptr b -> Int -> GMPRandState -> IO () # peek :: Ptr GMPRandState -> IO GMPRandState # poke :: Ptr GMPRandState -> GMPRandState -> IO () # |
mp_limb_t
newtype MPLimbSigned Source #
mp_limb_signed_t
mp_size_t
mp_exp_t
mp_bitcnt_t
newtype GMPRandAlg Source #
gmp_randalg_t