ghc-prim-0.5.0.0: GHC primitives

Maintainerghc-devs@haskell.org
Stabilityinternal
Portabilitynon-portable (GHC extensions)
Safe HaskellUnsafe
LanguageHaskell2010

GHC.Prim

Contents

Description

GHC's primitive types and operations. Use GHC.Exts from the base package instead of importing this module directly.

Synopsis

The word size story.

Haskell98 specifies that signed integers (type Int) must contain at least 30 bits. GHC always implements Int using the primitive type Int#, whose size equals the MachDeps.h constant WORD_SIZE_IN_BITS. This is normally set based on the config.h parameter SIZEOF_HSWORD, i.e., 32 bits on 32-bit machines, 64 bits on 64-bit machines. However, it can also be explicitly set to a smaller number, e.g., 31 bits, to allow the possibility of using tag bits. Currently GHC itself has only 32-bit and 64-bit variants, but 30 or 31-bit code can be exported as an external core file for use in other back ends.

GHC also implements a primitive unsigned integer type Word# which always has the same number of bits as Int#.

In addition, GHC supports families of explicit-sized integers and words at 8, 16, 32, and 64 bits, with the usual arithmetic operations, comparisons, and a range of conversions. The 8-bit and 16-bit sizes are always represented as Int# and Word#, and the operations implemented in terms of the the primops on these types, with suitable range restrictions on the results (using the narrow$n$Int# and narrow$n$Word# families of primops. The 32-bit sizes are represented using Int# and Word# when WORD_SIZE_IN_BITS $geq$ 32; otherwise, these are represented using distinct primitive types Int32# and Word32#. These (when needed) have a complete set of corresponding operations; however, nearly all of these are implemented as external C functions rather than as primops. Exactly the same story applies to the 64-bit sizes. All of these details are hidden under the PrelInt and PrelWord modules, which use #if-defs to invoke the appropriate types and operators.

Word size also matters for the families of primops for indexing/reading/writing fixed-size quantities at offsets from an array base, address, or foreign pointer. Here, a slightly different approach is taken. The names of these primops are fixed, but their types vary according to the value of WORD_SIZE_IN_BITS. For example, if word size is at least 32 bits then an operator like indexInt32Array# has type ByteArray# -> Int# -> Int#; otherwise it has type ByteArray# -> Int# -> Int32#. This approach confines the necessary #if-defs to this file; no conditional compilation is needed in the files that expose these primops.

Finally, there are strongly deprecated primops for coercing between Addr#, the primitive type of machine addresses, and Int#. These are pretty bogus anyway, but will work on existing 32-bit and 64-bit GHC targets; they are completely bogus when tag bits are used in Int#, so are not available in this case.

Char#

Operations on 31-bit characters.

Int#

Operations on native-size integers (30+ bits).

(+#) :: Int# -> Int# -> Int# infixl 6 Source #

(-#) :: Int# -> Int# -> Int# infixl 6 Source #

(*#) :: Int# -> Int# -> Int# infixl 7 Source #

Low word of signed integer multiply.

mulIntMayOflo# :: Int# -> Int# -> Int# Source #

Return non-zero if there is any possibility that the upper word of a signed integer multiply might contain useful information. Return zero only if you are completely sure that no overflow can occur. On a 32-bit platform, the recommmended implementation is to do a 32 x 32 -> 64 signed multiply, and subtract result[63:32] from (result[31] >>signed 31). If this is zero, meaning that the upper word is merely a sign extension of the lower one, no overflow can occur.

On a 64-bit platform it is not always possible to acquire the top 64 bits of the result. Therefore, a recommended implementation is to take the absolute value of both operands, and return 0 iff bits[63:31] of them are zero, since that means that their magnitudes fit within 31 bits, so the magnitude of the product must fit into 62 bits.

If in doubt, return non-zero, but do make an effort to create the correct answer for small args, since otherwise the performance of (*) :: Integer -> Integer -> Integer will be poor.

quotInt# :: Int# -> Int# -> Int# Source #

Rounds towards zero.

remInt# :: Int# -> Int# -> Int# Source #

Satisfies (quotInt# x y) *# y +# (remInt# x y) == x.

quotRemInt# :: Int# -> Int# -> (#Int#, Int##) Source #

Rounds towards zero.

addIntC# :: Int# -> Int# -> (#Int#, Int##) Source #

Add signed integers reporting overflow. First member of result is the sum truncated to an Int#; second member is zero if the true sum fits in an Int#, nonzero if overflow occurred (the sum is either too large or too small to fit in an Int#).

subIntC# :: Int# -> Int# -> (#Int#, Int##) Source #

Subtract signed integers reporting overflow. First member of result is the difference truncated to an Int#; second member is zero if the true difference fits in an Int#, nonzero if overflow occurred (the difference is either too large or too small to fit in an Int#).

(>#) :: Int# -> Int# -> Int# infix 4 Source #

(>=#) :: Int# -> Int# -> Int# infix 4 Source #

(==#) :: Int# -> Int# -> Int# infix 4 Source #

(/=#) :: Int# -> Int# -> Int# infix 4 Source #

(<#) :: Int# -> Int# -> Int# infix 4 Source #

(<=#) :: Int# -> Int# -> Int# infix 4 Source #

uncheckedIShiftL# :: Int# -> Int# -> Int# Source #

Shift left. Result undefined if shift amount is not in the range 0 to word size - 1 inclusive.

uncheckedIShiftRA# :: Int# -> Int# -> Int# Source #

Shift right arithmetic. Result undefined if shift amount is not in the range 0 to word size - 1 inclusive.

uncheckedIShiftRL# :: Int# -> Int# -> Int# Source #

Shift right logical. Result undefined if shift amount is not in the range 0 to word size - 1 inclusive.

Word#

Operations on native-sized unsigned words (30+ bits).

subWordC# :: Word# -> Word# -> (#Word#, Int##) Source #

Subtract unsigned integers reporting overflow. The first element of the pair is the result. The second element is the carry flag, which is nonzero on overflow.

uncheckedShiftL# :: Word# -> Int# -> Word# Source #

Shift left logical. Result undefined if shift amount is not in the range 0 to word size - 1 inclusive.

uncheckedShiftRL# :: Word# -> Int# -> Word# Source #

Shift right logical. Result undefined if shift amount is not in the range 0 to word size - 1 inclusive.

popCnt8# :: Word# -> Word# Source #

Count the number of set bits in the lower 8 bits of a word.

popCnt16# :: Word# -> Word# Source #

Count the number of set bits in the lower 16 bits of a word.

popCnt32# :: Word# -> Word# Source #

Count the number of set bits in the lower 32 bits of a word.

popCnt64# :: Word# -> Word# Source #

Count the number of set bits in a 64-bit word.

popCnt# :: Word# -> Word# Source #

Count the number of set bits in a word.

clz8# :: Word# -> Word# Source #

Count leading zeros in the lower 8 bits of a word.

clz16# :: Word# -> Word# Source #

Count leading zeros in the lower 16 bits of a word.

clz32# :: Word# -> Word# Source #

Count leading zeros in the lower 32 bits of a word.

clz64# :: Word# -> Word# Source #

Count leading zeros in a 64-bit word.

clz# :: Word# -> Word# Source #

Count leading zeros in a word.

ctz8# :: Word# -> Word# Source #

Count trailing zeros in the lower 8 bits of a word.

ctz16# :: Word# -> Word# Source #

Count trailing zeros in the lower 16 bits of a word.

ctz32# :: Word# -> Word# Source #

Count trailing zeros in the lower 32 bits of a word.

ctz64# :: Word# -> Word# Source #

Count trailing zeros in a 64-bit word.

ctz# :: Word# -> Word# Source #

Count trailing zeros in a word.

byteSwap16# :: Word# -> Word# Source #

Swap bytes in the lower 16 bits of a word. The higher bytes are undefined.

byteSwap32# :: Word# -> Word# Source #

Swap bytes in the lower 32 bits of a word. The higher bytes are undefined.

byteSwap64# :: Word# -> Word# Source #

Swap bytes in a 64 bits of a word.

byteSwap# :: Word# -> Word# Source #

Swap bytes in a word.

Narrowings

Explicit narrowing of native-sized ints or words.

Double#

Operations on double-precision (64 bit) floating-point numbers.

(>##) :: Double# -> Double# -> Int# infix 4 Source #

(>=##) :: Double# -> Double# -> Int# infix 4 Source #

(==##) :: Double# -> Double# -> Int# infix 4 Source #

(/=##) :: Double# -> Double# -> Int# infix 4 Source #

(<##) :: Double# -> Double# -> Int# infix 4 Source #

(<=##) :: Double# -> Double# -> Int# infix 4 Source #

(+##) :: Double# -> Double# -> Double# infixl 6 Source #

(-##) :: Double# -> Double# -> Double# infixl 6 Source #

(*##) :: Double# -> Double# -> Double# infixl 7 Source #

(/##) :: Double# -> Double# -> Double# infixl 7 Source #

double2Int# :: Double# -> Int# Source #

Truncates a Double# value to the nearest Int#. Results are undefined if the truncation if truncation yields a value outside the range of Int#.

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

Exponentiation.

decodeDouble_2Int# :: Double# -> (#Int#, Word#, Word#, Int##) Source #

Convert to integer. First component of the result is -1 or 1, indicating the sign of the mantissa. The next two are the high and low 32 bits of the mantissa respectively, and the last is the exponent.

decodeDouble_Int64# :: Double# -> (#Int#, Int##) Source #

Decode Double# into mantissa and base-2 exponent.

Float#

Operations on single-precision (32-bit) floating-point numbers.

float2Int# :: Float# -> Int# Source #

Truncates a Float# value to the nearest Int#. Results are undefined if the truncation if truncation yields a value outside the range of Int#.

decodeFloat_Int# :: Float# -> (#Int#, Int##) Source #

Convert to integers. First Int# in result is the mantissa; second is the exponent.

Arrays

Operations on Array#.

data Array# a Source #

newArray# :: Int# -> a -> State# s -> (#State# s, MutableArray# s a#) Source #

Create a new mutable array with the specified number of elements, in the specified state thread, with each element containing the specified initial value.

readArray# :: MutableArray# s a -> Int# -> State# s -> (#State# s, a#) Source #

Read from specified index of mutable array. Result is not yet evaluated.

writeArray# :: MutableArray# s a -> Int# -> a -> State# s -> State# s Source #

Write to specified index of mutable array.

sizeofArray# :: Array# a -> Int# Source #

Return the number of elements in the array.

sizeofMutableArray# :: MutableArray# s a -> Int# Source #

Return the number of elements in the array.

indexArray# :: Array# a -> Int# -> (#a#) Source #

Read from specified index of immutable array. Result is packaged into an unboxed singleton; the result itself is not yet evaluated.

unsafeFreezeArray# :: MutableArray# s a -> State# s -> (#State# s, Array# a#) Source #

Make a mutable array immutable, without copying.

unsafeThawArray# :: Array# a -> State# s -> (#State# s, MutableArray# s a#) Source #

Make an immutable array mutable, without copying.

copyArray# :: Array# a -> Int# -> MutableArray# s a -> Int# -> Int# -> State# s -> State# s Source #

Given a source array, an offset into the source array, a destination array, an offset into the destination array, and a number of elements to copy, copy the elements from the source array to the destination array. Both arrays must fully contain the specified ranges, but this is not checked. The two arrays must not be the same array in different states, but this is not checked either.

copyMutableArray# :: MutableArray# s a -> Int# -> MutableArray# s a -> Int# -> Int# -> State# s -> State# s Source #

Given a source array, an offset into the source array, a destination array, an offset into the destination array, and a number of elements to copy, copy the elements from the source array to the destination array. The source and destination arrays can refer to the same array. Both arrays must fully contain the specified ranges, but this is not checked.

cloneArray# :: Array# a -> Int# -> Int# -> Array# a Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

cloneMutableArray# :: MutableArray# s a -> Int# -> Int# -> State# s -> (#State# s, MutableArray# s a#) Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

freezeArray# :: MutableArray# s a -> Int# -> Int# -> State# s -> (#State# s, Array# a#) Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

thawArray# :: Array# a -> Int# -> Int# -> State# s -> (#State# s, MutableArray# s a#) Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

casArray# :: MutableArray# s a -> Int# -> a -> a -> State# s -> (#State# s, Int#, a#) Source #

Unsafe, machine-level atomic compare and swap on an element within an Array.

Small Arrays

Operations on SmallArray#. A SmallArray# works just like an Array#, but with different space use and performance characteristics (that are often useful with small arrays). The SmallArray# and SmallMutableArray# lack a `card table'. The purpose of a card table is to avoid having to scan every element of the array on each GC by keeping track of which elements have changed since the last GC and only scanning those that have changed. So the consequence of there being no card table is that the representation is somewhat smaller and the writes are somewhat faster (because the card table does not need to be updated). The disadvantage of course is that for a SmallMutableArray# the whole array has to be scanned on each GC. Thus it is best suited for use cases where the mutable array is not long lived, e.g. where a mutable array is initialised quickly and then frozen to become an immutable SmallArray#.

newSmallArray# :: Int# -> a -> State# s -> (#State# s, SmallMutableArray# s a#) Source #

Create a new mutable array with the specified number of elements, in the specified state thread, with each element containing the specified initial value.

readSmallArray# :: SmallMutableArray# s a -> Int# -> State# s -> (#State# s, a#) Source #

Read from specified index of mutable array. Result is not yet evaluated.

writeSmallArray# :: SmallMutableArray# s a -> Int# -> a -> State# s -> State# s Source #

Write to specified index of mutable array.

sizeofSmallArray# :: SmallArray# a -> Int# Source #

Return the number of elements in the array.

sizeofSmallMutableArray# :: SmallMutableArray# s a -> Int# Source #

Return the number of elements in the array.

indexSmallArray# :: SmallArray# a -> Int# -> (#a#) Source #

Read from specified index of immutable array. Result is packaged into an unboxed singleton; the result itself is not yet evaluated.

unsafeFreezeSmallArray# :: SmallMutableArray# s a -> State# s -> (#State# s, SmallArray# a#) Source #

Make a mutable array immutable, without copying.

unsafeThawSmallArray# :: SmallArray# a -> State# s -> (#State# s, SmallMutableArray# s a#) Source #

Make an immutable array mutable, without copying.

copySmallArray# :: SmallArray# a -> Int# -> SmallMutableArray# s a -> Int# -> Int# -> State# s -> State# s Source #

Given a source array, an offset into the source array, a destination array, an offset into the destination array, and a number of elements to copy, copy the elements from the source array to the destination array. Both arrays must fully contain the specified ranges, but this is not checked. The two arrays must not be the same array in different states, but this is not checked either.

copySmallMutableArray# :: SmallMutableArray# s a -> Int# -> SmallMutableArray# s a -> Int# -> Int# -> State# s -> State# s Source #

Given a source array, an offset into the source array, a destination array, an offset into the destination array, and a number of elements to copy, copy the elements from the source array to the destination array. The source and destination arrays can refer to the same array. Both arrays must fully contain the specified ranges, but this is not checked.

cloneSmallArray# :: SmallArray# a -> Int# -> Int# -> SmallArray# a Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

cloneSmallMutableArray# :: SmallMutableArray# s a -> Int# -> Int# -> State# s -> (#State# s, SmallMutableArray# s a#) Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

freezeSmallArray# :: SmallMutableArray# s a -> Int# -> Int# -> State# s -> (#State# s, SmallArray# a#) Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

thawSmallArray# :: SmallArray# a -> Int# -> Int# -> State# s -> (#State# s, SmallMutableArray# s a#) Source #

Given a source array, an offset into the source array, and a number of elements to copy, create a new array with the elements from the source array. The provided array must fully contain the specified range, but this is not checked.

casSmallArray# :: SmallMutableArray# s a -> Int# -> a -> a -> State# s -> (#State# s, Int#, a#) Source #

Unsafe, machine-level atomic compare and swap on an element within an array.

Byte Arrays

Operations on ByteArray#. A ByteArray# is a just a region of raw memory in the garbage-collected heap, which is not scanned for pointers. It carries its own size (in bytes). There are three sets of operations for accessing byte array contents: index for reading from immutable byte arrays, and read/write for mutable byte arrays. Each set contains operations for a range of useful primitive data types. Each operation takes an offset measured in terms of the size of the primitive type being read or written.

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

Create a new mutable byte array of specified size (in bytes), in the specified state thread.

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

Create a mutable byte array that the GC guarantees not to move.

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

Create a mutable byte array, aligned by the specified amount, that the GC guarantees not to move.

byteArrayContents# :: ByteArray# -> Addr# Source #

Intended for use with pinned arrays; otherwise very unsafe!

shrinkMutableByteArray# :: MutableByteArray# s -> Int# -> State# s -> State# s Source #

Shrink mutable byte array to new specified size (in bytes), in the specified state thread. The new size argument must be less than or equal to the current size as reported by sizeofMutableArray#.

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

Resize (unpinned) mutable byte array to new specified size (in bytes). The returned MutableByteArray# is either the original MutableByteArray# resized in-place or, if not possible, a newly allocated (unpinned) MutableByteArray# (with the original content copied over).

To avoid undefined behaviour, the original MutableByteArray# shall not be accessed anymore after a resizeMutableByteArray# has been performed. Moreover, no reference to the old one should be kept in order to allow garbage collection of the original MutableByteArray# in case a new MutableByteArray# had to be allocated.

unsafeFreezeByteArray# :: MutableByteArray# s -> State# s -> (#State# s, ByteArray##) Source #

Make a mutable byte array immutable, without copying.

sizeofByteArray# :: ByteArray# -> Int# Source #

Return the size of the array in bytes.

sizeofMutableByteArray# :: MutableByteArray# s -> Int# Source #

Return the size of the array in bytes. Note that this is deprecated as it is unsafe in the presence of concurrent resize operations on the same byte array. See getSizeofMutableByteArray.

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

Return the number of elements in the array.

indexCharArray# :: ByteArray# -> Int# -> Char# Source #

Read 8-bit character; offset in bytes.

indexWideCharArray# :: ByteArray# -> Int# -> Char# Source #

Read 31-bit character; offset in 4-byte words.

indexInt8Array# :: ByteArray# -> Int# -> Int# Source #

Read 8-bit integer; offset in bytes.

indexInt16Array# :: ByteArray# -> Int# -> Int# Source #

Read 16-bit integer; offset in 16-bit words.

indexInt32Array# :: ByteArray# -> Int# -> Int# Source #

Read 32-bit integer; offset in 32-bit words.

indexInt64Array# :: ByteArray# -> Int# -> Int# Source #

Read 64-bit integer; offset in 64-bit words.

indexWord8Array# :: ByteArray# -> Int# -> Word# Source #

Read 8-bit word; offset in bytes.

indexWord16Array# :: ByteArray# -> Int# -> Word# Source #

Read 16-bit word; offset in 16-bit words.

indexWord32Array# :: ByteArray# -> Int# -> Word# Source #

Read 32-bit word; offset in 32-bit words.

indexWord64Array# :: ByteArray# -> Int# -> Word# Source #

Read 64-bit word; offset in 64-bit words.

readCharArray# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Char##) Source #

Read 8-bit character; offset in bytes.

readWideCharArray# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Char##) Source #

Read 31-bit character; offset in 4-byte words.

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

Read intger; offset in words.

readWordArray# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word##) Source #

Read word; offset in words.

writeCharArray# :: MutableByteArray# s -> Int# -> Char# -> State# s -> State# s Source #

Write 8-bit character; offset in bytes.

writeWideCharArray# :: MutableByteArray# s -> Int# -> Char# -> State# s -> State# s Source #

Write 31-bit character; offset in 4-byte words.

copyByteArray# :: ByteArray# -> Int# -> MutableByteArray# s -> Int# -> Int# -> State# s -> State# s Source #

Copy a range of the ByteArray. Both arrays must fully contain the specified ranges, but this is not checked. The two arrays must not be the same array in different states, but this is not checked either.

copyMutableByteArray# :: MutableByteArray# s -> Int# -> MutableByteArray# s -> Int# -> Int# -> State# s -> State# s Source #

Copy a range of the first MutableByteArray. Both arrays must fully contain the specified ranges, but this is not checked.

copyByteArrayToAddr# :: ByteArray# -> Int# -> Addr# -> Int# -> State# s -> State# s Source #

Copy a range of the ByteArray. The ByteArray must fully contain the specified ranges, but this is not checked. The Addr# must not point into the ByteArray were pinned), but this is not checked either.

copyMutableByteArrayToAddr# :: MutableByteArray# s -> Int# -> Addr# -> Int# -> State# s -> State# s Source #

Copy a range of the MutableByteArray# to the memory range starting at the Addr and the memory region at Addr# must fully contain the specified ranges, but this is not checked. The Addr# must not point into the MutableByteArray were pinned), but this is not checked either.

copyAddrToByteArray# :: Addr# -> MutableByteArray# s -> Int# -> Int# -> State# s -> State# s Source #

Copy a memory range starting at the Addr# to the specified range in the MutableByteArray and the ByteArray# must fully contain the specified ranges, but this is not checked. The Addr# must not point into the MutableByteArray were pinned), but this is not checked either.

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

Set the range of the MutableByteArray# to the specified character.

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

Given an array and an offset in Int units, read an element. The index is assumed to be in bounds. Implies a full memory barrier.

atomicWriteIntArray# :: MutableByteArray# s -> Int# -> Int# -> State# s -> State# s Source #

Given an array and an offset in Int units, write an element. The index is assumed to be in bounds. Implies a full memory barrier.

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

Given an array, an offset in Int units, the expected old value, and the new value, perform an atomic compare and swap i.e. write the new value if the current value matches the provided old value. Returns the value of the element before the operation. Implies a full memory barrier.

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

Given an array, and offset in Int units, and a value to add, atomically add the value to the element. Returns the value of the element before the operation. Implies a full memory barrier.

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

Given an array, and offset in Int units, and a value to subtract, atomically substract the value to the element. Returns the value of the element before the operation. Implies a full memory barrier.

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

Given an array, and offset in Int units, and a value to AND, atomically AND the value to the element. Returns the value of the element before the operation. Implies a full memory barrier.

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

Given an array, and offset in Int units, and a value to NAND, atomically NAND the value to the element. Returns the value of the element before the operation. Implies a full memory barrier.

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

Given an array, and offset in Int units, and a value to OR, atomically OR the value to the element. Returns the value of the element before the operation. Implies a full memory barrier.

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

Given an array, and offset in Int units, and a value to XOR, atomically XOR the value to the element. Returns the value of the element before the operation. Implies a full memory barrier.

Arrays of arrays

Operations on ArrayArray#. An ArrayArray# contains references to {em unpointed} arrays, such as ByteArray#s. Hence, it is not parameterised by the element types, just like a ByteArray#, but it needs to be scanned during GC, just like an Array#. We represent an ArrayArray# exactly as a Array#, but provide element-type-specific indexing, reading, and writing.

newArrayArray# :: Int# -> State# s -> (#State# s, MutableArrayArray# s#) Source #

Create a new mutable array of arrays with the specified number of elements, in the specified state thread, with each element recursively referring to the newly created array.

unsafeFreezeArrayArray# :: MutableArrayArray# s -> State# s -> (#State# s, ArrayArray##) Source #

Make a mutable array of arrays immutable, without copying.

sizeofArrayArray# :: ArrayArray# -> Int# Source #

Return the number of elements in the array.

sizeofMutableArrayArray# :: MutableArrayArray# s -> Int# Source #

Return the number of elements in the array.

copyArrayArray# :: ArrayArray# -> Int# -> MutableArrayArray# s -> Int# -> Int# -> State# s -> State# s Source #

Copy a range of the ArrayArray. Both arrays must fully contain the specified ranges, but this is not checked. The two arrays must not be the same array in different states, but this is not checked either.

copyMutableArrayArray# :: MutableArrayArray# s -> Int# -> MutableArrayArray# s -> Int# -> Int# -> State# s -> State# s Source #

Copy a range of the first MutableArrayArray# to the specified region in the second MutableArrayArray#. Both arrays must fully contain the specified ranges, but this is not checked.

Addr#

 

data Addr# Source #

An arbitrary machine address assumed to point outside the garbage-collected heap.

nullAddr# :: Addr# Source #

The null address.

minusAddr# :: Addr# -> Addr# -> Int# Source #

Result is meaningless if two Addr#s are so far apart that their difference doesn't fit in an Int#.

remAddr# :: Addr# -> Int# -> Int# Source #

Return the remainder when the Addr# arg, treated like an Int#, is divided by the Int# arg.

addr2Int# :: Addr# -> Int# Source #

Coerce directly from address to int. Strongly deprecated.

int2Addr# :: Int# -> Addr# Source #

Coerce directly from int to address. Strongly deprecated.

indexCharOffAddr# :: Addr# -> Int# -> Char# Source #

Reads 8-bit character; offset in bytes.

indexWideCharOffAddr# :: Addr# -> Int# -> Char# Source #

Reads 31-bit character; offset in 4-byte words.

readCharOffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Char##) Source #

Reads 8-bit character; offset in bytes.

readWideCharOffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Char##) Source #

Reads 31-bit character; offset in 4-byte words.

Mutable variables

Operations on MutVar#s.

data MutVar# s a Source #

A MutVar# behaves like a single-element mutable array.

newMutVar# :: a -> State# s -> (#State# s, MutVar# s a#) Source #

Create MutVar# with specified initial value in specified state thread.

readMutVar# :: MutVar# s a -> State# s -> (#State# s, a#) Source #

Read contents of MutVar#. Result is not yet evaluated.

writeMutVar# :: MutVar# s a -> a -> State# s -> State# s Source #

Write contents of MutVar#.

atomicModifyMutVar# :: MutVar# s a -> (a -> b) -> State# s -> (#State# s, c#) Source #

casMutVar# :: MutVar# s a -> a -> a -> State# s -> (#State# s, Int#, a#) Source #

Exceptions

  • Note [Strictness for mask/unmask/catch] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Consider this example, which comes from GHC.IO.Handle.Internals: wantReadableHandle3 f ma b st = case ... of DEFAULT -> case ma of MVar a -> ... 0 (st -> case ma of MVar a -> ...) The outer case just decides whether to mask exceptions, but we don't want thereby to hide the strictness in 'ma'! Hence the use of strictApply1Dmd.

For catch, we must be extra careful; see Note [Exceptions and strictness] in Demand -

raise# :: b -> o Source #

STM-accessible Mutable Variables

 

data TVar# s a Source #

newTVar# :: a -> State# s -> (#State# s, TVar# s a#) Source #

Create a new TVar# holding a specified initial value.

readTVar# :: TVar# s a -> State# s -> (#State# s, a#) Source #

Read contents of TVar#. Result is not yet evaluated.

readTVarIO# :: TVar# s a -> State# s -> (#State# s, a#) Source #

Read contents of TVar# outside an STM transaction

writeTVar# :: TVar# s a -> a -> State# s -> State# s Source #

Write contents of TVar#.

sameTVar# :: TVar# s a -> TVar# s a -> Int# Source #

Synchronized Mutable Variables

Operations on MVar#s.

data MVar# s a Source #

A shared mutable variable (not the same as a MutVar#!). (Note: in a non-concurrent implementation, (MVar# a) can be represented by (MutVar# (Maybe a)).)

newMVar# :: State# s -> (#State# s, MVar# s a#) Source #

Create new MVar#; initially empty.

takeMVar# :: MVar# s a -> State# s -> (#State# s, a#) Source #

If MVar# is empty, block until it becomes full. Then remove and return its contents, and set it empty.

tryTakeMVar# :: MVar# s a -> State# s -> (#State# s, Int#, a#) Source #

If MVar# is empty, immediately return with integer 0 and value undefined. Otherwise, return with integer 1 and contents of MVar#, and set MVar# empty.

putMVar# :: MVar# s a -> a -> State# s -> State# s Source #

If MVar# is full, block until it becomes empty. Then store value arg as its new contents.

tryPutMVar# :: MVar# s a -> a -> State# s -> (#State# s, Int##) Source #

If MVar# is full, immediately return with integer 0. Otherwise, store value arg as MVar#'s new contents, and return with integer 1.

readMVar# :: MVar# s a -> State# s -> (#State# s, a#) Source #

If MVar# is empty, block until it becomes full. Then read its contents without modifying the MVar, without possibility of intervention from other threads.

tryReadMVar# :: MVar# s a -> State# s -> (#State# s, Int#, a#) Source #

If MVar# is empty, immediately return with integer 0 and value undefined. Otherwise, return with integer 1 and contents of MVar#.

sameMVar# :: MVar# s a -> MVar# s a -> Int# Source #

isEmptyMVar# :: MVar# s a -> State# s -> (#State# s, Int##) Source #

Return 1 if MVar# is empty; 0 otherwise.

Delay/wait operations

 

delay# :: Int# -> State# s -> State# s Source #

Sleep specified number of microseconds.

waitRead# :: Int# -> State# s -> State# s Source #

Block until input is available on specified file descriptor.

waitWrite# :: Int# -> State# s -> State# s Source #

Block until output is possible on specified file descriptor.

Concurrency primitives

 

data State# s Source #

State# is the primitive, unlifted type of states. It has one type parameter, thus State# RealWorld, or State# s, where s is a type variable. The only purpose of the type parameter is to keep different state threads separate. It is represented by nothing at all.

data RealWorld Source #

RealWorld is deeply magical. It is primitive, but it is not unlifted (hence ptrArg). We never manipulate values of type RealWorld; it's only used in the type system, to parameterise State#.

data ThreadId# Source #

(In a non-concurrent implementation, this can be a singleton type, whose (unique) value is returned by myThreadId#. The other operations can be omitted.)

Weak pointers

 

data Weak# b Source #

addCFinalizerToWeak# :: Addr# -> Addr# -> Int# -> Addr# -> Weak# b -> State# RealWorld -> (#State# RealWorld, Int##) Source #

addCFinalizerToWeak# fptr ptr flag eptr w attaches a C function pointer fptr to a weak pointer w as a finalizer. If flag is zero, fptr will be called with one argument, ptr. Otherwise, it will be called with two arguments, eptr and ptr. addCFinalizerToWeak# returns 1 on success, or 0 if w is already dead.

finalizeWeak# :: Weak# a -> State# RealWorld -> (#State# RealWorld, Int#, State# RealWorld -> (#State# RealWorld, b#)#) Source #

Finalize a weak pointer. The return value is an unboxed tuple containing the new state of the world and an "unboxed Maybe", represented by an Int# and a (possibly invalid) finalization action. An Int# of 1 indicates that the finalizer is valid. The return value b from the finalizer should be ignored.

Stable pointers and names

 

Unsafe pointer equality

 

Parallelism

 

par# :: a -> Int# Source #

spark# :: a -> State# s -> (#State# s, a#) Source #

seq# :: a -> State# s -> (#State# s, a#) Source #

getSpark# :: State# s -> (#State# s, Int#, a#) Source #

numSparks# :: State# s -> (#State# s, Int##) Source #

Returns the number of sparks in the local spark pool.

Tag to enum stuff

Convert back and forth between values of enumerated types and small integers.

Bytecode operations

Support for manipulating bytecode objects used by the interpreter and linker.

Bytecode objects are heap objects which represent top-level bindings and contain a list of instructions and data needed by these instructions.

data BCO# Source #

Primitive bytecode type.

addrToAny# :: Addr# -> (#a#) Source #

Convert an Addr# to a followable Any type.

mkApUpd0# :: BCO# -> (#a#) Source #

Wrap a BCO in a AP_UPD thunk which will be updated with the value of the BCO when evaluated.

newBCO# :: ByteArray# -> ByteArray# -> Array# a -> Int# -> ByteArray# -> State# s -> (#State# s, BCO##) Source #

newBCO# instrs lits ptrs arity bitmap creates a new bytecode object. The resulting object encodes a function of the given arity with the instructions encoded in instrs, and a static reference table usage bitmap given by bitmap.

getApStackVal# :: a -> Int# -> (#Int#, b#) Source #

Misc

These aren't nearly as wired in as Etc...

getCCSOf# :: a -> State# s -> (#State# s, Addr##) Source #

getCurrentCCS# :: a -> State# s -> (#State# s, Addr##) Source #

Returns the current CostCentreStack (value is NULL if not profiling). Takes a dummy argument which can be used to avoid the call to getCCCS# being floated out by the simplifier, which would result in an uninformative stack ("CAF").

clearCCS# :: (State# s -> (#State# s, a#)) -> State# s -> (#State# s, a#) Source #

Run the supplied IO action with an empty CCS. For example, this is used by the interpreter to run an interpreted computation without the call stack showing that it was invoked from GHC.

Etc

Miscellaneous built-ins

data Proxy# a Source #

The type constructor Proxy# is used to bear witness to some type variable. It's used when you want to pass around proxy values for doing things like modelling type applications. A Proxy# is not only unboxed, it also has a polymorphic kind, and has no runtime representation, being totally free.

proxy# :: Proxy# a Source #

Witness for an unboxed Proxy# value, which has no runtime representation.

seq :: a -> b -> b Source #

The value of seq a b is bottom if a is bottom, and otherwise equal to b. seq is usually introduced to improve performance by avoiding unneeded laziness.

A note on evaluation order: the expression seq a b does not guarantee that a will be evaluated before b. The only guarantee given by seq is that the both a and b will be evaluated before seq returns a value. In particular, this means that b may be evaluated before a. If you need to guarantee a specific order of evaluation, you must use the function pseq from the "parallel" package.

data Any Source #

The type constructor Any is type to which you can unsafely coerce any lifted type, and back.

  • It is lifted, and hence represented by a pointer
  • It does not claim to be a data type, and that's important for the code generator, because the code gen may enter a data value but never enters a function value.

It's also used to instantiate un-constrained type variables after type checking. For example, length has type

length :: forall a. [a] -> Int

and the list datacon for the empty list has type

[] :: forall a. [a]

In order to compose these two terms as length [] a type application is required, but there is no constraint on the choice. In this situation GHC uses Any:

length (Any *) ([] (Any *))

Above, we print kinds explicitly, as if with -fprint-explicit-kinds.

Note that Any is kind polymorphic; its kind is thus forall k. k.

data AnyK Source #

The kind AnyK is the kind level counterpart to Any. In a kind polymorphic setting, a similar example to the length of the empty list can be given at the type level:

type family Length (l :: [k]) :: Nat type instance Length [] = Zero

When Length is applied to the empty (promoted) list it will have the kind Length AnyK [].

AnyK is currently not exported and cannot be used directly, but you might see it in debug output from the compiler.

unsafeCoerce# :: a -> b Source #

The function unsafeCoerce# allows you to side-step the typechecker entirely. That is, it allows you to coerce any type into any other type. If you use this function, you had better get it right, otherwise segmentation faults await. It is generally used when you want to write a program that you know is well-typed, but where Haskell's type system is not expressive enough to prove that it is well typed.

The following uses of unsafeCoerce# are supposed to work (i.e. not lead to spurious compile-time or run-time crashes):

  • Casting any lifted type to Any
  • Casting Any back to the real type
  • Casting an unboxed type to another unboxed type of the same size (but not coercions between floating-point and integral types)
  • Casting between two types that have the same runtime representation. One case is when the two types differ only in "phantom" type parameters, for example Ptr Int to Ptr Float, or [Int] to [Float] when the list is known to be empty. Also, a newtype of a type T has the same representation at runtime as T.

Other uses of unsafeCoerce# are undefined. In particular, you should not use unsafeCoerce# to cast a T to an algebraic data type D, unless T is also an algebraic data type. For example, do not cast Int->Int to Bool, even if you later cast that Bool back to Int->Int before applying it. The reasons have to do with GHC's internal representation details (for the congnoscenti, data values can be entered but function closures cannot). If you want a safe type to cast things to, use Any, which is not an algebraic data type.

traceEvent# :: Addr# -> State# s -> State# s Source #

Emits an event via the RTS tracing framework. The contents of the event is the zero-terminated byte string passed as the first argument. The event will be emitted either to the .eventlog file, or to stderr, depending on the runtime RTS flags.

traceMarker# :: Addr# -> State# s -> State# s Source #

Emits a marker event via the RTS tracing framework. The contents of the event is the zero-terminated byte string passed as the first argument. The event will be emitted either to the .eventlog file, or to stderr, depending on the runtime RTS flags.

Safe coercions

 

coerce :: Coercible a b => a -> b Source #

The function coerce allows you to safely convert between values of types that have the same representation with no run-time overhead. In the simplest case you can use it instead of a newtype constructor, to go from the newtype's concrete type to the abstract type. But it also works in more complicated settings, e.g. converting a list of newtypes to a list of concrete types.

SIMD Vectors

Operations on SIMD vectors.

broadcastInt8X16# :: Int# -> Int8X16# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt16X8# :: Int# -> Int16X8# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt32X4# :: Int# -> Int32X4# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt64X2# :: Int# -> Int64X2# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt8X32# :: Int# -> Int8X32# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt16X16# :: Int# -> Int16X16# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt32X8# :: Int# -> Int32X8# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt64X4# :: Int# -> Int64X4# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt8X64# :: Int# -> Int8X64# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt16X32# :: Int# -> Int16X32# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt32X16# :: Int# -> Int32X16# Source #

Broadcast a scalar to all elements of a vector.

broadcastInt64X8# :: Int# -> Int64X8# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord8X16# :: Word# -> Word8X16# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord16X8# :: Word# -> Word16X8# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord32X4# :: Word# -> Word32X4# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord64X2# :: Word# -> Word64X2# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord8X32# :: Word# -> Word8X32# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord16X16# :: Word# -> Word16X16# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord32X8# :: Word# -> Word32X8# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord64X4# :: Word# -> Word64X4# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord8X64# :: Word# -> Word8X64# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord16X32# :: Word# -> Word16X32# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord32X16# :: Word# -> Word32X16# Source #

Broadcast a scalar to all elements of a vector.

broadcastWord64X8# :: Word# -> Word64X8# Source #

Broadcast a scalar to all elements of a vector.

broadcastFloatX4# :: Float# -> FloatX4# Source #

Broadcast a scalar to all elements of a vector.

broadcastDoubleX2# :: Double# -> DoubleX2# Source #

Broadcast a scalar to all elements of a vector.

broadcastFloatX8# :: Float# -> FloatX8# Source #

Broadcast a scalar to all elements of a vector.

broadcastDoubleX4# :: Double# -> DoubleX4# Source #

Broadcast a scalar to all elements of a vector.

broadcastFloatX16# :: Float# -> FloatX16# Source #

Broadcast a scalar to all elements of a vector.

broadcastDoubleX8# :: Double# -> DoubleX8# Source #

Broadcast a scalar to all elements of a vector.

packInt8X16# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int8X16# Source #

Pack the elements of an unboxed tuple into a vector.

packInt16X8# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int16X8# Source #

Pack the elements of an unboxed tuple into a vector.

packInt32X4# :: (#Int#, Int#, Int#, Int##) -> Int32X4# Source #

Pack the elements of an unboxed tuple into a vector.

packInt64X2# :: (#Int#, Int##) -> Int64X2# Source #

Pack the elements of an unboxed tuple into a vector.

packInt8X32# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int8X32# Source #

Pack the elements of an unboxed tuple into a vector.

packInt16X16# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int16X16# Source #

Pack the elements of an unboxed tuple into a vector.

packInt32X8# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int32X8# Source #

Pack the elements of an unboxed tuple into a vector.

packInt64X4# :: (#Int#, Int#, Int#, Int##) -> Int64X4# Source #

Pack the elements of an unboxed tuple into a vector.

packInt8X64# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int8X64# Source #

Pack the elements of an unboxed tuple into a vector.

packInt16X32# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int16X32# Source #

Pack the elements of an unboxed tuple into a vector.

packInt32X16# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int32X16# Source #

Pack the elements of an unboxed tuple into a vector.

packInt64X8# :: (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) -> Int64X8# Source #

Pack the elements of an unboxed tuple into a vector.

packWord8X16# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word8X16# Source #

Pack the elements of an unboxed tuple into a vector.

packWord16X8# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word16X8# Source #

Pack the elements of an unboxed tuple into a vector.

packWord32X4# :: (#Word#, Word#, Word#, Word##) -> Word32X4# Source #

Pack the elements of an unboxed tuple into a vector.

packWord64X2# :: (#Word#, Word##) -> Word64X2# Source #

Pack the elements of an unboxed tuple into a vector.

packWord8X32# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word8X32# Source #

Pack the elements of an unboxed tuple into a vector.

packWord16X16# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word16X16# Source #

Pack the elements of an unboxed tuple into a vector.

packWord32X8# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word32X8# Source #

Pack the elements of an unboxed tuple into a vector.

packWord64X4# :: (#Word#, Word#, Word#, Word##) -> Word64X4# Source #

Pack the elements of an unboxed tuple into a vector.

packWord16X32# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word16X32# Source #

Pack the elements of an unboxed tuple into a vector.

packWord32X16# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word32X16# Source #

Pack the elements of an unboxed tuple into a vector.

packWord64X8# :: (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) -> Word64X8# Source #

Pack the elements of an unboxed tuple into a vector.

packFloatX4# :: (#Float#, Float#, Float#, Float##) -> FloatX4# Source #

Pack the elements of an unboxed tuple into a vector.

packDoubleX2# :: (#Double#, Double##) -> DoubleX2# Source #

Pack the elements of an unboxed tuple into a vector.

packFloatX8# :: (#Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float##) -> FloatX8# Source #

Pack the elements of an unboxed tuple into a vector.

packDoubleX4# :: (#Double#, Double#, Double#, Double##) -> DoubleX4# Source #

Pack the elements of an unboxed tuple into a vector.

packFloatX16# :: (#Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float##) -> FloatX16# Source #

Pack the elements of an unboxed tuple into a vector.

packDoubleX8# :: (#Double#, Double#, Double#, Double#, Double#, Double#, Double#, Double##) -> DoubleX8# Source #

Pack the elements of an unboxed tuple into a vector.

unpackInt8X16# :: Int8X16# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt16X8# :: Int16X8# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt32X4# :: Int32X4# -> (#Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt64X2# :: Int64X2# -> (#Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt8X32# :: Int8X32# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt16X16# :: Int16X16# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt32X8# :: Int32X8# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt64X4# :: Int64X4# -> (#Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt8X64# :: Int8X64# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt16X32# :: Int16X32# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt32X16# :: Int32X16# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackInt64X8# :: Int64X8# -> (#Int#, Int#, Int#, Int#, Int#, Int#, Int#, Int##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord8X16# :: Word8X16# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord16X8# :: Word16X8# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord32X4# :: Word32X4# -> (#Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord64X2# :: Word64X2# -> (#Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord8X32# :: Word8X32# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord16X16# :: Word16X16# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord32X8# :: Word32X8# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord64X4# :: Word64X4# -> (#Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord16X32# :: Word16X32# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord32X16# :: Word32X16# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackWord64X8# :: Word64X8# -> (#Word#, Word#, Word#, Word#, Word#, Word#, Word#, Word##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackFloatX4# :: FloatX4# -> (#Float#, Float#, Float#, Float##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackDoubleX2# :: DoubleX2# -> (#Double#, Double##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackFloatX8# :: FloatX8# -> (#Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackDoubleX4# :: DoubleX4# -> (#Double#, Double#, Double#, Double##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackFloatX16# :: FloatX16# -> (#Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float#, Float##) Source #

Unpack the elements of a vector into an unboxed tuple. #

unpackDoubleX8# :: DoubleX8# -> (#Double#, Double#, Double#, Double#, Double#, Double#, Double#, Double##) Source #

Unpack the elements of a vector into an unboxed tuple. #

insertInt8X16# :: Int8X16# -> Int# -> Int# -> Int8X16# Source #

Insert a scalar at the given position in a vector.

insertInt16X8# :: Int16X8# -> Int# -> Int# -> Int16X8# Source #

Insert a scalar at the given position in a vector.

insertInt32X4# :: Int32X4# -> Int# -> Int# -> Int32X4# Source #

Insert a scalar at the given position in a vector.

insertInt64X2# :: Int64X2# -> Int# -> Int# -> Int64X2# Source #

Insert a scalar at the given position in a vector.

insertInt8X32# :: Int8X32# -> Int# -> Int# -> Int8X32# Source #

Insert a scalar at the given position in a vector.

insertInt16X16# :: Int16X16# -> Int# -> Int# -> Int16X16# Source #

Insert a scalar at the given position in a vector.

insertInt32X8# :: Int32X8# -> Int# -> Int# -> Int32X8# Source #

Insert a scalar at the given position in a vector.

insertInt64X4# :: Int64X4# -> Int# -> Int# -> Int64X4# Source #

Insert a scalar at the given position in a vector.

insertInt8X64# :: Int8X64# -> Int# -> Int# -> Int8X64# Source #

Insert a scalar at the given position in a vector.

insertInt16X32# :: Int16X32# -> Int# -> Int# -> Int16X32# Source #

Insert a scalar at the given position in a vector.

insertInt32X16# :: Int32X16# -> Int# -> Int# -> Int32X16# Source #

Insert a scalar at the given position in a vector.

insertInt64X8# :: Int64X8# -> Int# -> Int# -> Int64X8# Source #

Insert a scalar at the given position in a vector.

insertWord8X16# :: Word8X16# -> Word# -> Int# -> Word8X16# Source #

Insert a scalar at the given position in a vector.

insertWord16X8# :: Word16X8# -> Word# -> Int# -> Word16X8# Source #

Insert a scalar at the given position in a vector.

insertWord32X4# :: Word32X4# -> Word# -> Int# -> Word32X4# Source #

Insert a scalar at the given position in a vector.

insertWord64X2# :: Word64X2# -> Word# -> Int# -> Word64X2# Source #

Insert a scalar at the given position in a vector.

insertWord8X32# :: Word8X32# -> Word# -> Int# -> Word8X32# Source #

Insert a scalar at the given position in a vector.

insertWord16X16# :: Word16X16# -> Word# -> Int# -> Word16X16# Source #

Insert a scalar at the given position in a vector.

insertWord32X8# :: Word32X8# -> Word# -> Int# -> Word32X8# Source #

Insert a scalar at the given position in a vector.

insertWord64X4# :: Word64X4# -> Word# -> Int# -> Word64X4# Source #

Insert a scalar at the given position in a vector.

insertWord8X64# :: Word8X64# -> Word# -> Int# -> Word8X64# Source #

Insert a scalar at the given position in a vector.

insertWord16X32# :: Word16X32# -> Word# -> Int# -> Word16X32# Source #

Insert a scalar at the given position in a vector.

insertWord32X16# :: Word32X16# -> Word# -> Int# -> Word32X16# Source #

Insert a scalar at the given position in a vector.

insertWord64X8# :: Word64X8# -> Word# -> Int# -> Word64X8# Source #

Insert a scalar at the given position in a vector.

insertFloatX4# :: FloatX4# -> Float# -> Int# -> FloatX4# Source #

Insert a scalar at the given position in a vector.

insertDoubleX2# :: DoubleX2# -> Double# -> Int# -> DoubleX2# Source #

Insert a scalar at the given position in a vector.

insertFloatX8# :: FloatX8# -> Float# -> Int# -> FloatX8# Source #

Insert a scalar at the given position in a vector.

insertDoubleX4# :: DoubleX4# -> Double# -> Int# -> DoubleX4# Source #

Insert a scalar at the given position in a vector.

insertFloatX16# :: FloatX16# -> Float# -> Int# -> FloatX16# Source #

Insert a scalar at the given position in a vector.

insertDoubleX8# :: DoubleX8# -> Double# -> Int# -> DoubleX8# Source #

Insert a scalar at the given position in a vector.

plusInt8X16# :: Int8X16# -> Int8X16# -> Int8X16# Source #

Add two vectors element-wise.

plusInt16X8# :: Int16X8# -> Int16X8# -> Int16X8# Source #

Add two vectors element-wise.

plusInt32X4# :: Int32X4# -> Int32X4# -> Int32X4# Source #

Add two vectors element-wise.

plusInt64X2# :: Int64X2# -> Int64X2# -> Int64X2# Source #

Add two vectors element-wise.

plusInt8X32# :: Int8X32# -> Int8X32# -> Int8X32# Source #

Add two vectors element-wise.

plusInt16X16# :: Int16X16# -> Int16X16# -> Int16X16# Source #

Add two vectors element-wise.

plusInt32X8# :: Int32X8# -> Int32X8# -> Int32X8# Source #

Add two vectors element-wise.

plusInt64X4# :: Int64X4# -> Int64X4# -> Int64X4# Source #

Add two vectors element-wise.

plusInt8X64# :: Int8X64# -> Int8X64# -> Int8X64# Source #

Add two vectors element-wise.

plusInt16X32# :: Int16X32# -> Int16X32# -> Int16X32# Source #

Add two vectors element-wise.

plusInt32X16# :: Int32X16# -> Int32X16# -> Int32X16# Source #

Add two vectors element-wise.

plusInt64X8# :: Int64X8# -> Int64X8# -> Int64X8# Source #

Add two vectors element-wise.

plusWord8X16# :: Word8X16# -> Word8X16# -> Word8X16# Source #

Add two vectors element-wise.

plusWord16X8# :: Word16X8# -> Word16X8# -> Word16X8# Source #

Add two vectors element-wise.

plusWord32X4# :: Word32X4# -> Word32X4# -> Word32X4# Source #

Add two vectors element-wise.

plusWord64X2# :: Word64X2# -> Word64X2# -> Word64X2# Source #

Add two vectors element-wise.

plusWord8X32# :: Word8X32# -> Word8X32# -> Word8X32# Source #

Add two vectors element-wise.

plusWord16X16# :: Word16X16# -> Word16X16# -> Word16X16# Source #

Add two vectors element-wise.

plusWord32X8# :: Word32X8# -> Word32X8# -> Word32X8# Source #

Add two vectors element-wise.

plusWord64X4# :: Word64X4# -> Word64X4# -> Word64X4# Source #

Add two vectors element-wise.

plusWord8X64# :: Word8X64# -> Word8X64# -> Word8X64# Source #

Add two vectors element-wise.

plusWord16X32# :: Word16X32# -> Word16X32# -> Word16X32# Source #

Add two vectors element-wise.

plusWord32X16# :: Word32X16# -> Word32X16# -> Word32X16# Source #

Add two vectors element-wise.

plusWord64X8# :: Word64X8# -> Word64X8# -> Word64X8# Source #

Add two vectors element-wise.

plusFloatX4# :: FloatX4# -> FloatX4# -> FloatX4# Source #

Add two vectors element-wise.

plusDoubleX2# :: DoubleX2# -> DoubleX2# -> DoubleX2# Source #

Add two vectors element-wise.

plusFloatX8# :: FloatX8# -> FloatX8# -> FloatX8# Source #

Add two vectors element-wise.

plusDoubleX4# :: DoubleX4# -> DoubleX4# -> DoubleX4# Source #

Add two vectors element-wise.

plusFloatX16# :: FloatX16# -> FloatX16# -> FloatX16# Source #

Add two vectors element-wise.

plusDoubleX8# :: DoubleX8# -> DoubleX8# -> DoubleX8# Source #

Add two vectors element-wise.

minusInt8X16# :: Int8X16# -> Int8X16# -> Int8X16# Source #

Subtract two vectors element-wise.

minusInt16X8# :: Int16X8# -> Int16X8# -> Int16X8# Source #

Subtract two vectors element-wise.

minusInt32X4# :: Int32X4# -> Int32X4# -> Int32X4# Source #

Subtract two vectors element-wise.

minusInt64X2# :: Int64X2# -> Int64X2# -> Int64X2# Source #

Subtract two vectors element-wise.

minusInt8X32# :: Int8X32# -> Int8X32# -> Int8X32# Source #

Subtract two vectors element-wise.

minusInt16X16# :: Int16X16# -> Int16X16# -> Int16X16# Source #

Subtract two vectors element-wise.

minusInt32X8# :: Int32X8# -> Int32X8# -> Int32X8# Source #

Subtract two vectors element-wise.

minusInt64X4# :: Int64X4# -> Int64X4# -> Int64X4# Source #

Subtract two vectors element-wise.

minusInt8X64# :: Int8X64# -> Int8X64# -> Int8X64# Source #

Subtract two vectors element-wise.

minusInt16X32# :: Int16X32# -> Int16X32# -> Int16X32# Source #

Subtract two vectors element-wise.

minusInt32X16# :: Int32X16# -> Int32X16# -> Int32X16# Source #

Subtract two vectors element-wise.

minusInt64X8# :: Int64X8# -> Int64X8# -> Int64X8# Source #

Subtract two vectors element-wise.

minusWord8X16# :: Word8X16# -> Word8X16# -> Word8X16# Source #

Subtract two vectors element-wise.

minusWord16X8# :: Word16X8# -> Word16X8# -> Word16X8# Source #

Subtract two vectors element-wise.

minusWord32X4# :: Word32X4# -> Word32X4# -> Word32X4# Source #

Subtract two vectors element-wise.

minusWord64X2# :: Word64X2# -> Word64X2# -> Word64X2# Source #

Subtract two vectors element-wise.

minusWord8X32# :: Word8X32# -> Word8X32# -> Word8X32# Source #

Subtract two vectors element-wise.

minusWord16X16# :: Word16X16# -> Word16X16# -> Word16X16# Source #

Subtract two vectors element-wise.

minusWord32X8# :: Word32X8# -> Word32X8# -> Word32X8# Source #

Subtract two vectors element-wise.

minusWord64X4# :: Word64X4# -> Word64X4# -> Word64X4# Source #

Subtract two vectors element-wise.

minusWord8X64# :: Word8X64# -> Word8X64# -> Word8X64# Source #

Subtract two vectors element-wise.

minusWord16X32# :: Word16X32# -> Word16X32# -> Word16X32# Source #

Subtract two vectors element-wise.

minusWord32X16# :: Word32X16# -> Word32X16# -> Word32X16# Source #

Subtract two vectors element-wise.

minusWord64X8# :: Word64X8# -> Word64X8# -> Word64X8# Source #

Subtract two vectors element-wise.

minusFloatX4# :: FloatX4# -> FloatX4# -> FloatX4# Source #

Subtract two vectors element-wise.

minusDoubleX2# :: DoubleX2# -> DoubleX2# -> DoubleX2# Source #

Subtract two vectors element-wise.

minusFloatX8# :: FloatX8# -> FloatX8# -> FloatX8# Source #

Subtract two vectors element-wise.

minusDoubleX4# :: DoubleX4# -> DoubleX4# -> DoubleX4# Source #

Subtract two vectors element-wise.

minusFloatX16# :: FloatX16# -> FloatX16# -> FloatX16# Source #

Subtract two vectors element-wise.

minusDoubleX8# :: DoubleX8# -> DoubleX8# -> DoubleX8# Source #

Subtract two vectors element-wise.

timesInt8X16# :: Int8X16# -> Int8X16# -> Int8X16# Source #

Multiply two vectors element-wise.

timesInt16X8# :: Int16X8# -> Int16X8# -> Int16X8# Source #

Multiply two vectors element-wise.

timesInt32X4# :: Int32X4# -> Int32X4# -> Int32X4# Source #

Multiply two vectors element-wise.

timesInt64X2# :: Int64X2# -> Int64X2# -> Int64X2# Source #

Multiply two vectors element-wise.

timesInt8X32# :: Int8X32# -> Int8X32# -> Int8X32# Source #

Multiply two vectors element-wise.

timesInt16X16# :: Int16X16# -> Int16X16# -> Int16X16# Source #

Multiply two vectors element-wise.

timesInt32X8# :: Int32X8# -> Int32X8# -> Int32X8# Source #

Multiply two vectors element-wise.

timesInt64X4# :: Int64X4# -> Int64X4# -> Int64X4# Source #

Multiply two vectors element-wise.

timesInt8X64# :: Int8X64# -> Int8X64# -> Int8X64# Source #

Multiply two vectors element-wise.

timesInt16X32# :: Int16X32# -> Int16X32# -> Int16X32# Source #

Multiply two vectors element-wise.

timesInt32X16# :: Int32X16# -> Int32X16# -> Int32X16# Source #

Multiply two vectors element-wise.

timesInt64X8# :: Int64X8# -> Int64X8# -> Int64X8# Source #

Multiply two vectors element-wise.

timesWord8X16# :: Word8X16# -> Word8X16# -> Word8X16# Source #

Multiply two vectors element-wise.

timesWord16X8# :: Word16X8# -> Word16X8# -> Word16X8# Source #

Multiply two vectors element-wise.

timesWord32X4# :: Word32X4# -> Word32X4# -> Word32X4# Source #

Multiply two vectors element-wise.

timesWord64X2# :: Word64X2# -> Word64X2# -> Word64X2# Source #

Multiply two vectors element-wise.

timesWord8X32# :: Word8X32# -> Word8X32# -> Word8X32# Source #

Multiply two vectors element-wise.

timesWord16X16# :: Word16X16# -> Word16X16# -> Word16X16# Source #

Multiply two vectors element-wise.

timesWord32X8# :: Word32X8# -> Word32X8# -> Word32X8# Source #

Multiply two vectors element-wise.

timesWord64X4# :: Word64X4# -> Word64X4# -> Word64X4# Source #

Multiply two vectors element-wise.

timesWord8X64# :: Word8X64# -> Word8X64# -> Word8X64# Source #

Multiply two vectors element-wise.

timesWord16X32# :: Word16X32# -> Word16X32# -> Word16X32# Source #

Multiply two vectors element-wise.

timesWord32X16# :: Word32X16# -> Word32X16# -> Word32X16# Source #

Multiply two vectors element-wise.

timesWord64X8# :: Word64X8# -> Word64X8# -> Word64X8# Source #

Multiply two vectors element-wise.

timesFloatX4# :: FloatX4# -> FloatX4# -> FloatX4# Source #

Multiply two vectors element-wise.

timesDoubleX2# :: DoubleX2# -> DoubleX2# -> DoubleX2# Source #

Multiply two vectors element-wise.

timesFloatX8# :: FloatX8# -> FloatX8# -> FloatX8# Source #

Multiply two vectors element-wise.

timesDoubleX4# :: DoubleX4# -> DoubleX4# -> DoubleX4# Source #

Multiply two vectors element-wise.

timesFloatX16# :: FloatX16# -> FloatX16# -> FloatX16# Source #

Multiply two vectors element-wise.

timesDoubleX8# :: DoubleX8# -> DoubleX8# -> DoubleX8# Source #

Multiply two vectors element-wise.

divideFloatX4# :: FloatX4# -> FloatX4# -> FloatX4# Source #

Divide two vectors element-wise.

divideDoubleX2# :: DoubleX2# -> DoubleX2# -> DoubleX2# Source #

Divide two vectors element-wise.

divideFloatX8# :: FloatX8# -> FloatX8# -> FloatX8# Source #

Divide two vectors element-wise.

divideDoubleX4# :: DoubleX4# -> DoubleX4# -> DoubleX4# Source #

Divide two vectors element-wise.

divideFloatX16# :: FloatX16# -> FloatX16# -> FloatX16# Source #

Divide two vectors element-wise.

divideDoubleX8# :: DoubleX8# -> DoubleX8# -> DoubleX8# Source #

Divide two vectors element-wise.

quotInt8X16# :: Int8X16# -> Int8X16# -> Int8X16# Source #

Rounds towards zero element-wise.

quotInt16X8# :: Int16X8# -> Int16X8# -> Int16X8# Source #

Rounds towards zero element-wise.

quotInt32X4# :: Int32X4# -> Int32X4# -> Int32X4# Source #

Rounds towards zero element-wise.

quotInt64X2# :: Int64X2# -> Int64X2# -> Int64X2# Source #

Rounds towards zero element-wise.

quotInt8X32# :: Int8X32# -> Int8X32# -> Int8X32# Source #

Rounds towards zero element-wise.

quotInt16X16# :: Int16X16# -> Int16X16# -> Int16X16# Source #

Rounds towards zero element-wise.

quotInt32X8# :: Int32X8# -> Int32X8# -> Int32X8# Source #

Rounds towards zero element-wise.

quotInt64X4# :: Int64X4# -> Int64X4# -> Int64X4# Source #

Rounds towards zero element-wise.

quotInt8X64# :: Int8X64# -> Int8X64# -> Int8X64# Source #

Rounds towards zero element-wise.

quotInt16X32# :: Int16X32# -> Int16X32# -> Int16X32# Source #

Rounds towards zero element-wise.

quotInt32X16# :: Int32X16# -> Int32X16# -> Int32X16# Source #

Rounds towards zero element-wise.

quotInt64X8# :: Int64X8# -> Int64X8# -> Int64X8# Source #

Rounds towards zero element-wise.

quotWord8X16# :: Word8X16# -> Word8X16# -> Word8X16# Source #

Rounds towards zero element-wise.

quotWord16X8# :: Word16X8# -> Word16X8# -> Word16X8# Source #

Rounds towards zero element-wise.

quotWord32X4# :: Word32X4# -> Word32X4# -> Word32X4# Source #

Rounds towards zero element-wise.

quotWord64X2# :: Word64X2# -> Word64X2# -> Word64X2# Source #

Rounds towards zero element-wise.

quotWord8X32# :: Word8X32# -> Word8X32# -> Word8X32# Source #

Rounds towards zero element-wise.

quotWord16X16# :: Word16X16# -> Word16X16# -> Word16X16# Source #

Rounds towards zero element-wise.

quotWord32X8# :: Word32X8# -> Word32X8# -> Word32X8# Source #

Rounds towards zero element-wise.

quotWord64X4# :: Word64X4# -> Word64X4# -> Word64X4# Source #

Rounds towards zero element-wise.

quotWord8X64# :: Word8X64# -> Word8X64# -> Word8X64# Source #

Rounds towards zero element-wise.

quotWord16X32# :: Word16X32# -> Word16X32# -> Word16X32# Source #

Rounds towards zero element-wise.

quotWord32X16# :: Word32X16# -> Word32X16# -> Word32X16# Source #

Rounds towards zero element-wise.

quotWord64X8# :: Word64X8# -> Word64X8# -> Word64X8# Source #

Rounds towards zero element-wise.

remInt8X16# :: Int8X16# -> Int8X16# -> Int8X16# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt16X8# :: Int16X8# -> Int16X8# -> Int16X8# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt32X4# :: Int32X4# -> Int32X4# -> Int32X4# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt64X2# :: Int64X2# -> Int64X2# -> Int64X2# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt8X32# :: Int8X32# -> Int8X32# -> Int8X32# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt16X16# :: Int16X16# -> Int16X16# -> Int16X16# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt32X8# :: Int32X8# -> Int32X8# -> Int32X8# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt64X4# :: Int64X4# -> Int64X4# -> Int64X4# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt8X64# :: Int8X64# -> Int8X64# -> Int8X64# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt16X32# :: Int16X32# -> Int16X32# -> Int16X32# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt32X16# :: Int32X16# -> Int32X16# -> Int32X16# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remInt64X8# :: Int64X8# -> Int64X8# -> Int64X8# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord8X16# :: Word8X16# -> Word8X16# -> Word8X16# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord16X8# :: Word16X8# -> Word16X8# -> Word16X8# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord32X4# :: Word32X4# -> Word32X4# -> Word32X4# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord64X2# :: Word64X2# -> Word64X2# -> Word64X2# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord8X32# :: Word8X32# -> Word8X32# -> Word8X32# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord16X16# :: Word16X16# -> Word16X16# -> Word16X16# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord32X8# :: Word32X8# -> Word32X8# -> Word32X8# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord64X4# :: Word64X4# -> Word64X4# -> Word64X4# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord8X64# :: Word8X64# -> Word8X64# -> Word8X64# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord16X32# :: Word16X32# -> Word16X32# -> Word16X32# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord32X16# :: Word32X16# -> Word32X16# -> Word32X16# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

remWord64X8# :: Word64X8# -> Word64X8# -> Word64X8# Source #

Satisfies (quot# x y) times# y plus# (rem# x y) == x.

negateInt8X16# :: Int8X16# -> Int8X16# Source #

Negate element-wise.

negateInt16X8# :: Int16X8# -> Int16X8# Source #

Negate element-wise.

negateInt32X4# :: Int32X4# -> Int32X4# Source #

Negate element-wise.

negateInt64X2# :: Int64X2# -> Int64X2# Source #

Negate element-wise.

negateInt8X32# :: Int8X32# -> Int8X32# Source #

Negate element-wise.

negateInt16X16# :: Int16X16# -> Int16X16# Source #

Negate element-wise.

negateInt32X8# :: Int32X8# -> Int32X8# Source #

Negate element-wise.

negateInt64X4# :: Int64X4# -> Int64X4# Source #

Negate element-wise.

negateInt8X64# :: Int8X64# -> Int8X64# Source #

Negate element-wise.

negateInt16X32# :: Int16X32# -> Int16X32# Source #

Negate element-wise.

negateInt32X16# :: Int32X16# -> Int32X16# Source #

Negate element-wise.

negateInt64X8# :: Int64X8# -> Int64X8# Source #

Negate element-wise.

negateFloatX4# :: FloatX4# -> FloatX4# Source #

Negate element-wise.

negateDoubleX2# :: DoubleX2# -> DoubleX2# Source #

Negate element-wise.

negateFloatX8# :: FloatX8# -> FloatX8# Source #

Negate element-wise.

negateDoubleX4# :: DoubleX4# -> DoubleX4# Source #

Negate element-wise.

negateFloatX16# :: FloatX16# -> FloatX16# Source #

Negate element-wise.

negateDoubleX8# :: DoubleX8# -> DoubleX8# Source #

Negate element-wise.

indexInt8X16Array# :: ByteArray# -> Int# -> Int8X16# Source #

Read a vector from specified index of immutable array.

indexInt16X8Array# :: ByteArray# -> Int# -> Int16X8# Source #

Read a vector from specified index of immutable array.

indexInt32X4Array# :: ByteArray# -> Int# -> Int32X4# Source #

Read a vector from specified index of immutable array.

indexInt64X2Array# :: ByteArray# -> Int# -> Int64X2# Source #

Read a vector from specified index of immutable array.

indexInt8X32Array# :: ByteArray# -> Int# -> Int8X32# Source #

Read a vector from specified index of immutable array.

indexInt16X16Array# :: ByteArray# -> Int# -> Int16X16# Source #

Read a vector from specified index of immutable array.

indexInt32X8Array# :: ByteArray# -> Int# -> Int32X8# Source #

Read a vector from specified index of immutable array.

indexInt64X4Array# :: ByteArray# -> Int# -> Int64X4# Source #

Read a vector from specified index of immutable array.

indexInt8X64Array# :: ByteArray# -> Int# -> Int8X64# Source #

Read a vector from specified index of immutable array.

indexInt16X32Array# :: ByteArray# -> Int# -> Int16X32# Source #

Read a vector from specified index of immutable array.

indexInt32X16Array# :: ByteArray# -> Int# -> Int32X16# Source #

Read a vector from specified index of immutable array.

indexInt64X8Array# :: ByteArray# -> Int# -> Int64X8# Source #

Read a vector from specified index of immutable array.

indexWord8X16Array# :: ByteArray# -> Int# -> Word8X16# Source #

Read a vector from specified index of immutable array.

indexWord16X8Array# :: ByteArray# -> Int# -> Word16X8# Source #

Read a vector from specified index of immutable array.

indexWord32X4Array# :: ByteArray# -> Int# -> Word32X4# Source #

Read a vector from specified index of immutable array.

indexWord64X2Array# :: ByteArray# -> Int# -> Word64X2# Source #

Read a vector from specified index of immutable array.

indexWord8X32Array# :: ByteArray# -> Int# -> Word8X32# Source #

Read a vector from specified index of immutable array.

indexWord16X16Array# :: ByteArray# -> Int# -> Word16X16# Source #

Read a vector from specified index of immutable array.

indexWord32X8Array# :: ByteArray# -> Int# -> Word32X8# Source #

Read a vector from specified index of immutable array.

indexWord64X4Array# :: ByteArray# -> Int# -> Word64X4# Source #

Read a vector from specified index of immutable array.

indexWord8X64Array# :: ByteArray# -> Int# -> Word8X64# Source #

Read a vector from specified index of immutable array.

indexWord16X32Array# :: ByteArray# -> Int# -> Word16X32# Source #

Read a vector from specified index of immutable array.

indexWord32X16Array# :: ByteArray# -> Int# -> Word32X16# Source #

Read a vector from specified index of immutable array.

indexWord64X8Array# :: ByteArray# -> Int# -> Word64X8# Source #

Read a vector from specified index of immutable array.

indexFloatX4Array# :: ByteArray# -> Int# -> FloatX4# Source #

Read a vector from specified index of immutable array.

indexDoubleX2Array# :: ByteArray# -> Int# -> DoubleX2# Source #

Read a vector from specified index of immutable array.

indexFloatX8Array# :: ByteArray# -> Int# -> FloatX8# Source #

Read a vector from specified index of immutable array.

indexDoubleX4Array# :: ByteArray# -> Int# -> DoubleX4# Source #

Read a vector from specified index of immutable array.

indexFloatX16Array# :: ByteArray# -> Int# -> FloatX16# Source #

Read a vector from specified index of immutable array.

indexDoubleX8Array# :: ByteArray# -> Int# -> DoubleX8# Source #

Read a vector from specified index of immutable array.

readInt8X16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int8X16##) Source #

Read a vector from specified index of mutable array.

readInt16X8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int16X8##) Source #

Read a vector from specified index of mutable array.

readInt32X4Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int32X4##) Source #

Read a vector from specified index of mutable array.

readInt64X2Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int64X2##) Source #

Read a vector from specified index of mutable array.

readInt8X32Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int8X32##) Source #

Read a vector from specified index of mutable array.

readInt16X16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int16X16##) Source #

Read a vector from specified index of mutable array.

readInt32X8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int32X8##) Source #

Read a vector from specified index of mutable array.

readInt64X4Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int64X4##) Source #

Read a vector from specified index of mutable array.

readInt8X64Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int8X64##) Source #

Read a vector from specified index of mutable array.

readInt16X32Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int16X32##) Source #

Read a vector from specified index of mutable array.

readInt32X16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int32X16##) Source #

Read a vector from specified index of mutable array.

readInt64X8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int64X8##) Source #

Read a vector from specified index of mutable array.

readWord8X16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word8X16##) Source #

Read a vector from specified index of mutable array.

readWord16X8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word16X8##) Source #

Read a vector from specified index of mutable array.

readWord32X4Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word32X4##) Source #

Read a vector from specified index of mutable array.

readWord64X2Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word64X2##) Source #

Read a vector from specified index of mutable array.

readWord8X32Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word8X32##) Source #

Read a vector from specified index of mutable array.

readWord16X16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word16X16##) Source #

Read a vector from specified index of mutable array.

readWord32X8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word32X8##) Source #

Read a vector from specified index of mutable array.

readWord64X4Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word64X4##) Source #

Read a vector from specified index of mutable array.

readWord8X64Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word8X64##) Source #

Read a vector from specified index of mutable array.

readWord16X32Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word16X32##) Source #

Read a vector from specified index of mutable array.

readWord32X16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word32X16##) Source #

Read a vector from specified index of mutable array.

readWord64X8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word64X8##) Source #

Read a vector from specified index of mutable array.

readFloatX4Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, FloatX4##) Source #

Read a vector from specified index of mutable array.

readDoubleX2Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, DoubleX2##) Source #

Read a vector from specified index of mutable array.

readFloatX8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, FloatX8##) Source #

Read a vector from specified index of mutable array.

readDoubleX4Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, DoubleX4##) Source #

Read a vector from specified index of mutable array.

readFloatX16Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, FloatX16##) Source #

Read a vector from specified index of mutable array.

readDoubleX8Array# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, DoubleX8##) Source #

Read a vector from specified index of mutable array.

writeInt8X16Array# :: MutableByteArray# s -> Int# -> Int8X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt16X8Array# :: MutableByteArray# s -> Int# -> Int16X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt32X4Array# :: MutableByteArray# s -> Int# -> Int32X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt64X2Array# :: MutableByteArray# s -> Int# -> Int64X2# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt8X32Array# :: MutableByteArray# s -> Int# -> Int8X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt16X16Array# :: MutableByteArray# s -> Int# -> Int16X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt32X8Array# :: MutableByteArray# s -> Int# -> Int32X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt64X4Array# :: MutableByteArray# s -> Int# -> Int64X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt8X64Array# :: MutableByteArray# s -> Int# -> Int8X64# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt16X32Array# :: MutableByteArray# s -> Int# -> Int16X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt32X16Array# :: MutableByteArray# s -> Int# -> Int32X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeInt64X8Array# :: MutableByteArray# s -> Int# -> Int64X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord8X16Array# :: MutableByteArray# s -> Int# -> Word8X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord16X8Array# :: MutableByteArray# s -> Int# -> Word16X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord32X4Array# :: MutableByteArray# s -> Int# -> Word32X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord64X2Array# :: MutableByteArray# s -> Int# -> Word64X2# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord8X32Array# :: MutableByteArray# s -> Int# -> Word8X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord16X16Array# :: MutableByteArray# s -> Int# -> Word16X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord32X8Array# :: MutableByteArray# s -> Int# -> Word32X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord64X4Array# :: MutableByteArray# s -> Int# -> Word64X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord8X64Array# :: MutableByteArray# s -> Int# -> Word8X64# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord16X32Array# :: MutableByteArray# s -> Int# -> Word16X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord32X16Array# :: MutableByteArray# s -> Int# -> Word32X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeWord64X8Array# :: MutableByteArray# s -> Int# -> Word64X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeFloatX4Array# :: MutableByteArray# s -> Int# -> FloatX4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeDoubleX2Array# :: MutableByteArray# s -> Int# -> DoubleX2# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeFloatX8Array# :: MutableByteArray# s -> Int# -> FloatX8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeDoubleX4Array# :: MutableByteArray# s -> Int# -> DoubleX4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeFloatX16Array# :: MutableByteArray# s -> Int# -> FloatX16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

writeDoubleX8Array# :: MutableByteArray# s -> Int# -> DoubleX8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array.

indexInt8X16OffAddr# :: Addr# -> Int# -> Int8X16# Source #

Reads vector; offset in bytes.

indexInt16X8OffAddr# :: Addr# -> Int# -> Int16X8# Source #

Reads vector; offset in bytes.

indexInt32X4OffAddr# :: Addr# -> Int# -> Int32X4# Source #

Reads vector; offset in bytes.

indexInt64X2OffAddr# :: Addr# -> Int# -> Int64X2# Source #

Reads vector; offset in bytes.

indexInt8X32OffAddr# :: Addr# -> Int# -> Int8X32# Source #

Reads vector; offset in bytes.

indexInt16X16OffAddr# :: Addr# -> Int# -> Int16X16# Source #

Reads vector; offset in bytes.

indexInt32X8OffAddr# :: Addr# -> Int# -> Int32X8# Source #

Reads vector; offset in bytes.

indexInt64X4OffAddr# :: Addr# -> Int# -> Int64X4# Source #

Reads vector; offset in bytes.

indexInt8X64OffAddr# :: Addr# -> Int# -> Int8X64# Source #

Reads vector; offset in bytes.

indexInt16X32OffAddr# :: Addr# -> Int# -> Int16X32# Source #

Reads vector; offset in bytes.

indexInt32X16OffAddr# :: Addr# -> Int# -> Int32X16# Source #

Reads vector; offset in bytes.

indexInt64X8OffAddr# :: Addr# -> Int# -> Int64X8# Source #

Reads vector; offset in bytes.

indexWord8X16OffAddr# :: Addr# -> Int# -> Word8X16# Source #

Reads vector; offset in bytes.

indexWord16X8OffAddr# :: Addr# -> Int# -> Word16X8# Source #

Reads vector; offset in bytes.

indexWord32X4OffAddr# :: Addr# -> Int# -> Word32X4# Source #

Reads vector; offset in bytes.

indexWord64X2OffAddr# :: Addr# -> Int# -> Word64X2# Source #

Reads vector; offset in bytes.

indexWord8X32OffAddr# :: Addr# -> Int# -> Word8X32# Source #

Reads vector; offset in bytes.

indexWord16X16OffAddr# :: Addr# -> Int# -> Word16X16# Source #

Reads vector; offset in bytes.

indexWord32X8OffAddr# :: Addr# -> Int# -> Word32X8# Source #

Reads vector; offset in bytes.

indexWord64X4OffAddr# :: Addr# -> Int# -> Word64X4# Source #

Reads vector; offset in bytes.

indexWord8X64OffAddr# :: Addr# -> Int# -> Word8X64# Source #

Reads vector; offset in bytes.

indexWord16X32OffAddr# :: Addr# -> Int# -> Word16X32# Source #

Reads vector; offset in bytes.

indexWord32X16OffAddr# :: Addr# -> Int# -> Word32X16# Source #

Reads vector; offset in bytes.

indexWord64X8OffAddr# :: Addr# -> Int# -> Word64X8# Source #

Reads vector; offset in bytes.

indexFloatX4OffAddr# :: Addr# -> Int# -> FloatX4# Source #

Reads vector; offset in bytes.

indexDoubleX2OffAddr# :: Addr# -> Int# -> DoubleX2# Source #

Reads vector; offset in bytes.

indexFloatX8OffAddr# :: Addr# -> Int# -> FloatX8# Source #

Reads vector; offset in bytes.

indexDoubleX4OffAddr# :: Addr# -> Int# -> DoubleX4# Source #

Reads vector; offset in bytes.

indexFloatX16OffAddr# :: Addr# -> Int# -> FloatX16# Source #

Reads vector; offset in bytes.

indexDoubleX8OffAddr# :: Addr# -> Int# -> DoubleX8# Source #

Reads vector; offset in bytes.

readInt8X16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int8X16##) Source #

Reads vector; offset in bytes.

readInt16X8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int16X8##) Source #

Reads vector; offset in bytes.

readInt32X4OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int32X4##) Source #

Reads vector; offset in bytes.

readInt64X2OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int64X2##) Source #

Reads vector; offset in bytes.

readInt8X32OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int8X32##) Source #

Reads vector; offset in bytes.

readInt16X16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int16X16##) Source #

Reads vector; offset in bytes.

readInt32X8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int32X8##) Source #

Reads vector; offset in bytes.

readInt64X4OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int64X4##) Source #

Reads vector; offset in bytes.

readInt8X64OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int8X64##) Source #

Reads vector; offset in bytes.

readInt16X32OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int16X32##) Source #

Reads vector; offset in bytes.

readInt32X16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int32X16##) Source #

Reads vector; offset in bytes.

readInt64X8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Int64X8##) Source #

Reads vector; offset in bytes.

readWord8X16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word8X16##) Source #

Reads vector; offset in bytes.

readWord16X8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word16X8##) Source #

Reads vector; offset in bytes.

readWord32X4OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word32X4##) Source #

Reads vector; offset in bytes.

readWord64X2OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word64X2##) Source #

Reads vector; offset in bytes.

readWord8X32OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word8X32##) Source #

Reads vector; offset in bytes.

readWord16X16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word16X16##) Source #

Reads vector; offset in bytes.

readWord32X8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word32X8##) Source #

Reads vector; offset in bytes.

readWord64X4OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word64X4##) Source #

Reads vector; offset in bytes.

readWord8X64OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word8X64##) Source #

Reads vector; offset in bytes.

readWord16X32OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word16X32##) Source #

Reads vector; offset in bytes.

readWord32X16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word32X16##) Source #

Reads vector; offset in bytes.

readWord64X8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, Word64X8##) Source #

Reads vector; offset in bytes.

readFloatX4OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, FloatX4##) Source #

Reads vector; offset in bytes.

readDoubleX2OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, DoubleX2##) Source #

Reads vector; offset in bytes.

readFloatX8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, FloatX8##) Source #

Reads vector; offset in bytes.

readDoubleX4OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, DoubleX4##) Source #

Reads vector; offset in bytes.

readFloatX16OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, FloatX16##) Source #

Reads vector; offset in bytes.

readDoubleX8OffAddr# :: Addr# -> Int# -> State# s -> (#State# s, DoubleX8##) Source #

Reads vector; offset in bytes.

writeInt8X16OffAddr# :: Addr# -> Int# -> Int8X16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt16X8OffAddr# :: Addr# -> Int# -> Int16X8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt32X4OffAddr# :: Addr# -> Int# -> Int32X4# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt64X2OffAddr# :: Addr# -> Int# -> Int64X2# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt8X32OffAddr# :: Addr# -> Int# -> Int8X32# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt16X16OffAddr# :: Addr# -> Int# -> Int16X16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt32X8OffAddr# :: Addr# -> Int# -> Int32X8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt64X4OffAddr# :: Addr# -> Int# -> Int64X4# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt8X64OffAddr# :: Addr# -> Int# -> Int8X64# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt16X32OffAddr# :: Addr# -> Int# -> Int16X32# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt32X16OffAddr# :: Addr# -> Int# -> Int32X16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeInt64X8OffAddr# :: Addr# -> Int# -> Int64X8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord8X16OffAddr# :: Addr# -> Int# -> Word8X16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord16X8OffAddr# :: Addr# -> Int# -> Word16X8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord32X4OffAddr# :: Addr# -> Int# -> Word32X4# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord64X2OffAddr# :: Addr# -> Int# -> Word64X2# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord8X32OffAddr# :: Addr# -> Int# -> Word8X32# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord16X16OffAddr# :: Addr# -> Int# -> Word16X16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord32X8OffAddr# :: Addr# -> Int# -> Word32X8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord64X4OffAddr# :: Addr# -> Int# -> Word64X4# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord8X64OffAddr# :: Addr# -> Int# -> Word8X64# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord16X32OffAddr# :: Addr# -> Int# -> Word16X32# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord32X16OffAddr# :: Addr# -> Int# -> Word32X16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeWord64X8OffAddr# :: Addr# -> Int# -> Word64X8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeFloatX4OffAddr# :: Addr# -> Int# -> FloatX4# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeDoubleX2OffAddr# :: Addr# -> Int# -> DoubleX2# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeFloatX8OffAddr# :: Addr# -> Int# -> FloatX8# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeDoubleX4OffAddr# :: Addr# -> Int# -> DoubleX4# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeFloatX16OffAddr# :: Addr# -> Int# -> FloatX16# -> State# s -> State# s Source #

Write vector; offset in bytes.

writeDoubleX8OffAddr# :: Addr# -> Int# -> DoubleX8# -> State# s -> State# s Source #

Write vector; offset in bytes.

indexInt8ArrayAsInt8X16# :: ByteArray# -> Int# -> Int8X16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt16ArrayAsInt16X8# :: ByteArray# -> Int# -> Int16X8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt32ArrayAsInt32X4# :: ByteArray# -> Int# -> Int32X4# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt64ArrayAsInt64X2# :: ByteArray# -> Int# -> Int64X2# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt8ArrayAsInt8X32# :: ByteArray# -> Int# -> Int8X32# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt16ArrayAsInt16X16# :: ByteArray# -> Int# -> Int16X16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt32ArrayAsInt32X8# :: ByteArray# -> Int# -> Int32X8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt64ArrayAsInt64X4# :: ByteArray# -> Int# -> Int64X4# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt8ArrayAsInt8X64# :: ByteArray# -> Int# -> Int8X64# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt16ArrayAsInt16X32# :: ByteArray# -> Int# -> Int16X32# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt32ArrayAsInt32X16# :: ByteArray# -> Int# -> Int32X16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexInt64ArrayAsInt64X8# :: ByteArray# -> Int# -> Int64X8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord8ArrayAsWord8X16# :: ByteArray# -> Int# -> Word8X16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord16ArrayAsWord16X8# :: ByteArray# -> Int# -> Word16X8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord32ArrayAsWord32X4# :: ByteArray# -> Int# -> Word32X4# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord64ArrayAsWord64X2# :: ByteArray# -> Int# -> Word64X2# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord8ArrayAsWord8X32# :: ByteArray# -> Int# -> Word8X32# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord16ArrayAsWord16X16# :: ByteArray# -> Int# -> Word16X16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord32ArrayAsWord32X8# :: ByteArray# -> Int# -> Word32X8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord64ArrayAsWord64X4# :: ByteArray# -> Int# -> Word64X4# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord8ArrayAsWord8X64# :: ByteArray# -> Int# -> Word8X64# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord16ArrayAsWord16X32# :: ByteArray# -> Int# -> Word16X32# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord32ArrayAsWord32X16# :: ByteArray# -> Int# -> Word32X16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexWord64ArrayAsWord64X8# :: ByteArray# -> Int# -> Word64X8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexFloatArrayAsFloatX4# :: ByteArray# -> Int# -> FloatX4# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexDoubleArrayAsDoubleX2# :: ByteArray# -> Int# -> DoubleX2# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexFloatArrayAsFloatX8# :: ByteArray# -> Int# -> FloatX8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexDoubleArrayAsDoubleX4# :: ByteArray# -> Int# -> DoubleX4# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexFloatArrayAsFloatX16# :: ByteArray# -> Int# -> FloatX16# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

indexDoubleArrayAsDoubleX8# :: ByteArray# -> Int# -> DoubleX8# Source #

Read a vector from specified index of immutable array of scalars; offset is in scalar elements.

readInt8ArrayAsInt8X16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int8X16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt16ArrayAsInt16X8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int16X8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt32ArrayAsInt32X4# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int32X4##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt64ArrayAsInt64X2# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int64X2##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt8ArrayAsInt8X32# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int8X32##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt16ArrayAsInt16X16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int16X16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt32ArrayAsInt32X8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int32X8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt64ArrayAsInt64X4# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int64X4##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt8ArrayAsInt8X64# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int8X64##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt16ArrayAsInt16X32# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int16X32##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt32ArrayAsInt32X16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int32X16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readInt64ArrayAsInt64X8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Int64X8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord8ArrayAsWord8X16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word8X16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord16ArrayAsWord16X8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word16X8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord32ArrayAsWord32X4# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word32X4##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord64ArrayAsWord64X2# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word64X2##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord8ArrayAsWord8X32# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word8X32##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord16ArrayAsWord16X16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word16X16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord32ArrayAsWord32X8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word32X8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord64ArrayAsWord64X4# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word64X4##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord8ArrayAsWord8X64# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word8X64##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord16ArrayAsWord16X32# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word16X32##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord32ArrayAsWord32X16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word32X16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readWord64ArrayAsWord64X8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, Word64X8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readFloatArrayAsFloatX4# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, FloatX4##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readDoubleArrayAsDoubleX2# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, DoubleX2##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readFloatArrayAsFloatX8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, FloatX8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readDoubleArrayAsDoubleX4# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, DoubleX4##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readFloatArrayAsFloatX16# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, FloatX16##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

readDoubleArrayAsDoubleX8# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, DoubleX8##) Source #

Read a vector from specified index of mutable array of scalars; offset is in scalar elements.

writeInt8ArrayAsInt8X16# :: MutableByteArray# s -> Int# -> Int8X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt16ArrayAsInt16X8# :: MutableByteArray# s -> Int# -> Int16X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt32ArrayAsInt32X4# :: MutableByteArray# s -> Int# -> Int32X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt64ArrayAsInt64X2# :: MutableByteArray# s -> Int# -> Int64X2# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt8ArrayAsInt8X32# :: MutableByteArray# s -> Int# -> Int8X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt16ArrayAsInt16X16# :: MutableByteArray# s -> Int# -> Int16X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt32ArrayAsInt32X8# :: MutableByteArray# s -> Int# -> Int32X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt64ArrayAsInt64X4# :: MutableByteArray# s -> Int# -> Int64X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt8ArrayAsInt8X64# :: MutableByteArray# s -> Int# -> Int8X64# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt16ArrayAsInt16X32# :: MutableByteArray# s -> Int# -> Int16X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt32ArrayAsInt32X16# :: MutableByteArray# s -> Int# -> Int32X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeInt64ArrayAsInt64X8# :: MutableByteArray# s -> Int# -> Int64X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord8ArrayAsWord8X16# :: MutableByteArray# s -> Int# -> Word8X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord16ArrayAsWord16X8# :: MutableByteArray# s -> Int# -> Word16X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord32ArrayAsWord32X4# :: MutableByteArray# s -> Int# -> Word32X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord64ArrayAsWord64X2# :: MutableByteArray# s -> Int# -> Word64X2# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord8ArrayAsWord8X32# :: MutableByteArray# s -> Int# -> Word8X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord16ArrayAsWord16X16# :: MutableByteArray# s -> Int# -> Word16X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord32ArrayAsWord32X8# :: MutableByteArray# s -> Int# -> Word32X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord64ArrayAsWord64X4# :: MutableByteArray# s -> Int# -> Word64X4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord8ArrayAsWord8X64# :: MutableByteArray# s -> Int# -> Word8X64# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord16ArrayAsWord16X32# :: MutableByteArray# s -> Int# -> Word16X32# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord32ArrayAsWord32X16# :: MutableByteArray# s -> Int# -> Word32X16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeWord64ArrayAsWord64X8# :: MutableByteArray# s -> Int# -> Word64X8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeFloatArrayAsFloatX4# :: MutableByteArray# s -> Int# -> FloatX4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeDoubleArrayAsDoubleX2# :: MutableByteArray# s -> Int# -> DoubleX2# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeFloatArrayAsFloatX8# :: MutableByteArray# s -> Int# -> FloatX8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeDoubleArrayAsDoubleX4# :: MutableByteArray# s -> Int# -> DoubleX4# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeFloatArrayAsFloatX16# :: MutableByteArray# s -> Int# -> FloatX16# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

writeDoubleArrayAsDoubleX8# :: MutableByteArray# s -> Int# -> DoubleX8# -> State# s -> State# s Source #

Write a vector to specified index of mutable array of scalars; offset is in scalar elements.

indexInt8OffAddrAsInt8X16# :: Addr# -> Int# -> Int8X16# Source #

Reads vector; offset in scalar elements.

indexInt16OffAddrAsInt16X8# :: Addr# -> Int# -> Int16X8# Source #

Reads vector; offset in scalar elements.

indexInt32OffAddrAsInt32X4# :: Addr# -> Int# -> Int32X4# Source #

Reads vector; offset in scalar elements.

indexInt64OffAddrAsInt64X2# :: Addr# -> Int# -> Int64X2# Source #

Reads vector; offset in scalar elements.

indexInt8OffAddrAsInt8X32# :: Addr# -> Int# -> Int8X32# Source #

Reads vector; offset in scalar elements.

indexInt16OffAddrAsInt16X16# :: Addr# -> Int# -> Int16X16# Source #

Reads vector; offset in scalar elements.

indexInt32OffAddrAsInt32X8# :: Addr# -> Int# -> Int32X8# Source #

Reads vector; offset in scalar elements.

indexInt64OffAddrAsInt64X4# :: Addr# -> Int# -> Int64X4# Source #

Reads vector; offset in scalar elements.

indexInt8OffAddrAsInt8X64# :: Addr# -> Int# -> Int8X64# Source #

Reads vector; offset in scalar elements.

indexInt16OffAddrAsInt16X32# :: Addr# -> Int# -> Int16X32# Source #

Reads vector; offset in scalar elements.

indexInt32OffAddrAsInt32X16# :: Addr# -> Int# -> Int32X16# Source #

Reads vector; offset in scalar elements.

indexInt64OffAddrAsInt64X8# :: Addr# -> Int# -> Int64X8# Source #

Reads vector; offset in scalar elements.

indexWord8OffAddrAsWord8X16# :: Addr# -> Int# -> Word8X16# Source #

Reads vector; offset in scalar elements.

indexWord16OffAddrAsWord16X8# :: Addr# -> Int# -> Word16X8# Source #

Reads vector; offset in scalar elements.

indexWord32OffAddrAsWord32X4# :: Addr# -> Int# -> Word32X4# Source #

Reads vector; offset in scalar elements.

indexWord64OffAddrAsWord64X2# :: Addr# -> Int# -> Word64X2# Source #

Reads vector; offset in scalar elements.

indexWord8OffAddrAsWord8X32# :: Addr# -> Int# -> Word8X32# Source #

Reads vector; offset in scalar elements.

indexWord16OffAddrAsWord16X16# :: Addr# -> Int# -> Word16X16# Source #

Reads vector; offset in scalar elements.

indexWord32OffAddrAsWord32X8# :: Addr# -> Int# -> Word32X8# Source #

Reads vector; offset in scalar elements.

indexWord64OffAddrAsWord64X4# :: Addr# -> Int# -> Word64X4# Source #

Reads vector; offset in scalar elements.

indexWord8OffAddrAsWord8X64# :: Addr# -> Int# -> Word8X64# Source #

Reads vector; offset in scalar elements.

indexWord16OffAddrAsWord16X32# :: Addr# -> Int# -> Word16X32# Source #

Reads vector; offset in scalar elements.

indexWord32OffAddrAsWord32X16# :: Addr# -> Int# -> Word32X16# Source #

Reads vector; offset in scalar elements.

indexWord64OffAddrAsWord64X8# :: Addr# -> Int# -> Word64X8# Source #

Reads vector; offset in scalar elements.

indexFloatOffAddrAsFloatX4# :: Addr# -> Int# -> FloatX4# Source #

Reads vector; offset in scalar elements.

indexDoubleOffAddrAsDoubleX2# :: Addr# -> Int# -> DoubleX2# Source #

Reads vector; offset in scalar elements.

indexFloatOffAddrAsFloatX8# :: Addr# -> Int# -> FloatX8# Source #

Reads vector; offset in scalar elements.

indexDoubleOffAddrAsDoubleX4# :: Addr# -> Int# -> DoubleX4# Source #

Reads vector; offset in scalar elements.

indexFloatOffAddrAsFloatX16# :: Addr# -> Int# -> FloatX16# Source #

Reads vector; offset in scalar elements.

indexDoubleOffAddrAsDoubleX8# :: Addr# -> Int# -> DoubleX8# Source #

Reads vector; offset in scalar elements.

readInt8OffAddrAsInt8X16# :: Addr# -> Int# -> State# s -> (#State# s, Int8X16##) Source #

Reads vector; offset in scalar elements.

readInt16OffAddrAsInt16X8# :: Addr# -> Int# -> State# s -> (#State# s, Int16X8##) Source #

Reads vector; offset in scalar elements.

readInt32OffAddrAsInt32X4# :: Addr# -> Int# -> State# s -> (#State# s, Int32X4##) Source #

Reads vector; offset in scalar elements.

readInt64OffAddrAsInt64X2# :: Addr# -> Int# -> State# s -> (#State# s, Int64X2##) Source #

Reads vector; offset in scalar elements.

readInt8OffAddrAsInt8X32# :: Addr# -> Int# -> State# s -> (#State# s, Int8X32##) Source #

Reads vector; offset in scalar elements.

readInt16OffAddrAsInt16X16# :: Addr# -> Int# -> State# s -> (#State# s, Int16X16##) Source #

Reads vector; offset in scalar elements.

readInt32OffAddrAsInt32X8# :: Addr# -> Int# -> State# s -> (#State# s, Int32X8##) Source #

Reads vector; offset in scalar elements.

readInt64OffAddrAsInt64X4# :: Addr# -> Int# -> State# s -> (#State# s, Int64X4##) Source #

Reads vector; offset in scalar elements.

readInt8OffAddrAsInt8X64# :: Addr# -> Int# -> State# s -> (#State# s, Int8X64##) Source #

Reads vector; offset in scalar elements.

readInt16OffAddrAsInt16X32# :: Addr# -> Int# -> State# s -> (#State# s, Int16X32##) Source #

Reads vector; offset in scalar elements.

readInt32OffAddrAsInt32X16# :: Addr# -> Int# -> State# s -> (#State# s, Int32X16##) Source #

Reads vector; offset in scalar elements.

readInt64OffAddrAsInt64X8# :: Addr# -> Int# -> State# s -> (#State# s, Int64X8##) Source #

Reads vector; offset in scalar elements.

readWord8OffAddrAsWord8X16# :: Addr# -> Int# -> State# s -> (#State# s, Word8X16##) Source #

Reads vector; offset in scalar elements.

readWord16OffAddrAsWord16X8# :: Addr# -> Int# -> State# s -> (#State# s, Word16X8##) Source #

Reads vector; offset in scalar elements.

readWord32OffAddrAsWord32X4# :: Addr# -> Int# -> State# s -> (#State# s, Word32X4##) Source #

Reads vector; offset in scalar elements.

readWord64OffAddrAsWord64X2# :: Addr# -> Int# -> State# s -> (#State# s, Word64X2##) Source #

Reads vector; offset in scalar elements.

readWord8OffAddrAsWord8X32# :: Addr# -> Int# -> State# s -> (#State# s, Word8X32##) Source #

Reads vector; offset in scalar elements.

readWord16OffAddrAsWord16X16# :: Addr# -> Int# -> State# s -> (#State# s, Word16X16##) Source #

Reads vector; offset in scalar elements.

readWord32OffAddrAsWord32X8# :: Addr# -> Int# -> State# s -> (#State# s, Word32X8##) Source #

Reads vector; offset in scalar elements.

readWord64OffAddrAsWord64X4# :: Addr# -> Int# -> State# s -> (#State# s, Word64X4##) Source #

Reads vector; offset in scalar elements.

readWord8OffAddrAsWord8X64# :: Addr# -> Int# -> State# s -> (#State# s, Word8X64##) Source #

Reads vector; offset in scalar elements.

readWord16OffAddrAsWord16X32# :: Addr# -> Int# -> State# s -> (#State# s, Word16X32##) Source #

Reads vector; offset in scalar elements.

readWord32OffAddrAsWord32X16# :: Addr# -> Int# -> State# s -> (#State# s, Word32X16##) Source #

Reads vector; offset in scalar elements.

readWord64OffAddrAsWord64X8# :: Addr# -> Int# -> State# s -> (#State# s, Word64X8##) Source #

Reads vector; offset in scalar elements.

readFloatOffAddrAsFloatX4# :: Addr# -> Int# -> State# s -> (#State# s, FloatX4##) Source #

Reads vector; offset in scalar elements.

readDoubleOffAddrAsDoubleX2# :: Addr# -> Int# -> State# s -> (#State# s, DoubleX2##) Source #

Reads vector; offset in scalar elements.

readFloatOffAddrAsFloatX8# :: Addr# -> Int# -> State# s -> (#State# s, FloatX8##) Source #

Reads vector; offset in scalar elements.

readDoubleOffAddrAsDoubleX4# :: Addr# -> Int# -> State# s -> (#State# s, DoubleX4##) Source #

Reads vector; offset in scalar elements.

readFloatOffAddrAsFloatX16# :: Addr# -> Int# -> State# s -> (#State# s, FloatX16##) Source #

Reads vector; offset in scalar elements.

readDoubleOffAddrAsDoubleX8# :: Addr# -> Int# -> State# s -> (#State# s, DoubleX8##) Source #

Reads vector; offset in scalar elements.

writeInt8OffAddrAsInt8X16# :: Addr# -> Int# -> Int8X16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt16OffAddrAsInt16X8# :: Addr# -> Int# -> Int16X8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt32OffAddrAsInt32X4# :: Addr# -> Int# -> Int32X4# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt64OffAddrAsInt64X2# :: Addr# -> Int# -> Int64X2# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt8OffAddrAsInt8X32# :: Addr# -> Int# -> Int8X32# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt16OffAddrAsInt16X16# :: Addr# -> Int# -> Int16X16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt32OffAddrAsInt32X8# :: Addr# -> Int# -> Int32X8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt64OffAddrAsInt64X4# :: Addr# -> Int# -> Int64X4# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt8OffAddrAsInt8X64# :: Addr# -> Int# -> Int8X64# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt16OffAddrAsInt16X32# :: Addr# -> Int# -> Int16X32# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt32OffAddrAsInt32X16# :: Addr# -> Int# -> Int32X16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeInt64OffAddrAsInt64X8# :: Addr# -> Int# -> Int64X8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord8OffAddrAsWord8X16# :: Addr# -> Int# -> Word8X16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord16OffAddrAsWord16X8# :: Addr# -> Int# -> Word16X8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord32OffAddrAsWord32X4# :: Addr# -> Int# -> Word32X4# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord64OffAddrAsWord64X2# :: Addr# -> Int# -> Word64X2# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord8OffAddrAsWord8X32# :: Addr# -> Int# -> Word8X32# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord16OffAddrAsWord16X16# :: Addr# -> Int# -> Word16X16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord32OffAddrAsWord32X8# :: Addr# -> Int# -> Word32X8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord64OffAddrAsWord64X4# :: Addr# -> Int# -> Word64X4# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord8OffAddrAsWord8X64# :: Addr# -> Int# -> Word8X64# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord16OffAddrAsWord16X32# :: Addr# -> Int# -> Word16X32# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord32OffAddrAsWord32X16# :: Addr# -> Int# -> Word32X16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeWord64OffAddrAsWord64X8# :: Addr# -> Int# -> Word64X8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeFloatOffAddrAsFloatX4# :: Addr# -> Int# -> FloatX4# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeDoubleOffAddrAsDoubleX2# :: Addr# -> Int# -> DoubleX2# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeFloatOffAddrAsFloatX8# :: Addr# -> Int# -> FloatX8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeDoubleOffAddrAsDoubleX4# :: Addr# -> Int# -> DoubleX4# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeFloatOffAddrAsFloatX16# :: Addr# -> Int# -> FloatX16# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

writeDoubleOffAddrAsDoubleX8# :: Addr# -> Int# -> DoubleX8# -> State# s -> State# s Source #

Write vector; offset in scalar elements.

Prefetch

Prefetch operations: Note how every prefetch operation has a name with the pattern prefetch*N#, where N is either 0,1,2, or 3.

This suffix number, N, is the "locality level" of the prefetch, following the convention in GCC and other compilers. Higher locality numbers correspond to the memory being loaded in more levels of the cpu cache, and being retained after initial use. The naming convention follows the naming convention of the prefetch intrinsic found in the GCC and Clang C compilers.

On the LLVM backend, prefetch*N# uses the LLVM prefetch intrinsic with locality level N. The code generated by LLVM is target architecture dependent, but should agree with the GHC NCG on x86 systems.

On the Sparc and PPC native backends, prefetch*N is a No-Op.

On the x86 NCG, N=0 will generate prefetchNTA, N=1 generates prefetcht2, N=2 generates prefetcht1, and N=3 generates prefetcht0.

For streaming workloads, the prefetch*0 operations are recommended. For workloads which do many reads or writes to a memory location in a short period of time, prefetch*3 operations are recommended.

For further reading about prefetch and associated systems performance optimization, the instruction set and optimization manuals by Intel and other CPU vendors are excellent starting place.

The "Intel 64 and IA-32 Architectures Optimization Reference Manual" is especially a helpful read, even if your software is meant for other CPU architectures or vendor hardware. The manual can be found at http://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-optimization-manual.html .

The prefetch* family of operations has the order of operations determined by passing around the State# token.

To get a "pure" version of these operations, use inlinePerformIO which is quite safe in this context.

It is important to note that while the prefetch operations will never change the answer to a pure computation, They CAN change the memory locations resident in a CPU cache and that may change the performance and timing characteristics of an application. The prefetch operations are marked has_side_effects=True to reflect that these operations have side effects with respect to the runtime performance characteristics of the resulting code. Additionally, if the prefetchValue operations did not have this attribute, GHC does a float out transformation that results in a let/app violation, at least with the current design.