summaryrefslogtreecommitdiff
path: root/lib/std/slcp.myr
blob: a099bf3fd195c6d1857f444ef8bb39580c0401ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use "die.use"
use "types.use"
use "memops.use"

pkg std =
	generic slcp : (a : @a[:], b : @a[:] -> void)
;;

generic slcp = {a : @a[:], b : @a[:]
	assert(a.len == b.len, "arguments to slcp() must be of equal length\n")
	memblit(a castto(byte#), b castto(byte#), a.len * sizeof(@a))
}