nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler: add a native implementation of NativeArray::memmove
[nit.git]
/
lib
/
core
/
collection
/
array.nit
diff --git
a/lib/core/collection/array.nit
b/lib/core/collection/array.nit
index
df7f5e7
..
8747c8b
100644
(file)
--- a/
lib/core/collection/array.nit
+++ b/
lib/core/collection/array.nit
@@
-992,8
+992,7
@@
universal NativeArray[E]
fun copy_to(dest: NativeArray[E], length: Int) is intern
# Copy `length` items to `dest` starting from `dest`.
fun copy_to(dest: NativeArray[E], length: Int) is intern
# Copy `length` items to `dest` starting from `dest`.
- fun memmove(start: Int, length: Int, dest: NativeArray[E], dest_start: Int) do
- # TODO native one
+ fun memmove(start: Int, length: Int, dest: NativeArray[E], dest_start: Int) is intern do
if start < dest_start then
var i = length
while i > 0 do
if start < dest_start then
var i = length
while i > 0 do