[go: up one dir, main page]

Menu

[r3]: / mmem.mpl  Maximize  Restore  History

Download this file

13 lines (9 with data), 325 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
+mvec
memset(d,l,v) [l-->0@d%l=v;d]
memcpy(d,s,l) [l-->0@d%l=s%l;d]
memmod(d,s,l,f) [l-->0@d%l=f(s%l);d]
memclr(d,l) memset(d,l,0)
memrev(d,l;t,r) [l+=r=d;d<l@[t=%d;%d++=%--l;%l=t];r]
memmov(d,s,l;r) [r=d;d<s?l-->0@%d++=%s++,d<>s?l-->0@d%l=s%l;r]
malloc(a) getvec((a-1)/sizeof.int$)
free(p) freevec(p)