summaryrefslogtreecommitdiff
path: root/libstd/slcp.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-26 12:20:58 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-26 12:20:58 -0700
commit2bc852bda98762d3bc01548bf972e3f1b137fbfb (patch)
tree74831deed3c9057c5fe0cbb8790d220e855bc792 /libstd/slcp.myr
parent3de952510eb2a23350d24ed926f19c0cf72a12f2 (diff)
downloadmc-2bc852bda98762d3bc01548bf972e3f1b137fbfb.tar.gz
Move Myrddin libs to lib/ subdirectory.
Diffstat (limited to 'libstd/slcp.myr')
-rw-r--r--libstd/slcp.myr26
1 files changed, 0 insertions, 26 deletions
diff --git a/libstd/slcp.myr b/libstd/slcp.myr
deleted file mode 100644
index 1035a29..0000000
--- a/libstd/slcp.myr
+++ /dev/null
@@ -1,26 +0,0 @@
-use "die.use"
-use "types.use"
-
-pkg std =
- generic slcp : (a : @a[:], b : @a[:] -> void)
-;;
-
-generic slcp = {a : @a[:], b : @a[:]
- var i
- var addr_a, addr_b
-
- assert(a.len == b.len, "arguments to slcp() must be of equal length")
-
- addr_a = a castto(@a#) castto(intptr)
- addr_b = b castto(@a#) castto(intptr)
- if addr_a <= addr_b
- for i = 0; i < a.len; i++
- a[i] = b[i]
- ;;
- else
- for i = a.len; i > 0; i--
- a[i - 1] = b[i - 1]
- ;;
- ;;
-
-}