transients-0: Transients

Safe HaskellUnsafe
LanguageHaskell2010

Data.Transient.Primitive.Exts

Contents

Synopsis

MutVar Primitives

sameMutVar :: MutVar s a -> MutVar s a -> Bool Source

casMutVar :: PrimMonad m => MutVar (PrimState m) a -> a -> a -> m (Int, a) Source

Array Primitives

sizeOfArray :: Array a -> Int Source

sizeOfMutableArray :: MutableArray s a -> Int Source

casArray :: PrimMonad m => MutableArray (PrimState m) a -> Int -> a -> a -> m (Int, a) Source

ByteArray Primitives

sizeOfByteArray :: ByteArray -> Int Source

sizeOfMutableByteArray :: MutableByteArray s -> Int Source

casIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> Int -> m Int Source

atomicReadIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> m Int Source

atomicWriteIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m () Source

fetchAddIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m Int Source

fetchSubIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m Int Source

fetchAndIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m Int Source

fetchNandIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m Int Source

fetchOrIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m Int Source

fetchXorIntArray :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> Int -> m Int Source

Prefetching

prefetchByteArray0 :: PrimMonad m => ByteArray -> Int -> m () Source

prefetchByteArray1 :: PrimMonad m => ByteArray -> Int -> m () Source

prefetchByteArray2 :: PrimMonad m => ByteArray -> Int -> m () Source

prefetchByteArray3 :: PrimMonad m => ByteArray -> Int -> m () Source

prefetchMutableByteArray0 :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> m () Source

prefetchMutableByteArray1 :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> m () Source

prefetchMutableByteArray2 :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> m () Source

prefetchMutableByteArray3 :: PrimMonad m => MutableByteArray (PrimState m) -> Int -> m () Source

prefetchValue0 :: PrimMonad m => a -> m () Source

prefetchValue1 :: PrimMonad m => a -> m () Source

prefetchValue2 :: PrimMonad m => a -> m () Source

prefetchValue3 :: PrimMonad m => a -> m () Source