Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Francesco Gazzetta
Glasgow Haskell Compiler
Commits
564a31f3
Commit
564a31f3
authored
Jun 17, 2017
by
Andrew Martin
Committed by
Ben Gamari
Jun 19, 2017
Browse files
Reword documentation region overlap documentation for copying mutable arrays
parent
6a2264d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/prelude/primops.txt.pp
View file @
564a31f3
...
...
@@ -825,9 +825,10 @@ primop CopyMutableArrayOp "copyMutableArray#" GenPrimOp
{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.}
to the destination array. Both arrays must fully contain the
specified ranges, but this is not checked. In the case where
the source and destination are the same array the source and
destination regions may overlap.}
with
out_of_line
=
True
has_side_effects
=
True
...
...
@@ -990,7 +991,9 @@ primop CopySmallMutableArrayOp "copySmallMutableArray#" GenPrimOp
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.}
specified ranges, but this is not checked.
The regions are allowed to overlap, although this is only possible when the same
array is provided as both the source and the destination. }
with
out_of_line
=
True
has_side_effects
=
True
...
...
@@ -1400,7 +1403,9 @@ primop CopyByteArrayOp "copyByteArray#" GenPrimOp
primop
CopyMutableByteArrayOp
"
copyMutableByteArray
#
"
GenPrimOp
MutableByteArray
#
s
->
Int
#
->
MutableByteArray
#
s
->
Int
#
->
Int
#
->
State
#
s
->
State
#
s
{Copy a range of the first MutableByteArray# to the specified region in the second MutableByteArray#.
Both arrays must fully contain the specified ranges, but this is not checked.}
Both arrays must fully contain the specified ranges, but this is not checked. The regions are
allowed to overlap, although this is only possible when the same array is provided
as both the source and the destination.}
with
has_side_effects
=
True
code_size
=
{ primOpCodeSizeForeignCall + 4 }
...
...
@@ -1627,7 +1632,10 @@ primop CopyMutableArrayArrayOp "copyMutableArrayArray#" GenPrimOp
MutableArrayArray
#
s
->
Int
#
->
MutableArrayArray
#
s
->
Int
#
->
Int
#
->
State
#
s
->
State
#
s
{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.}
Both arrays must fully contain the specified ranges, but this is not checked.
The regions are allowed to overlap, although this is only possible when the same
array is provided as both the source and the destination.
}
with
out_of_line
=
True
has_side_effects
=
True
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment