aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-20 09:11:46 -0800
committerRuss Cox <rsc@golang.org>2009-11-20 09:11:46 -0800
commit652f55672d9f8b77890127d010268375d975872c (patch)
treef5540d80cbce69c63a3b4569acdccf66f145311a /src/pkg/runtime/runtime.c
parent688ffc1dc1d4706074cdd876c6f064e2c7d03c54 (diff)
downloadgo-652f55672d9f8b77890127d010268375d975872c.tar.xz
x[lo:] - gc and runtime.
* add runtime sliceslice1 for x[lo:] * remove runtime arraytoslice, rewriting &arr into arr[0:len(arr)]. * port cgen_inline into 8g, 5g. * use native memmove in maps R=ken2 https://golang.org/cl/157106
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 39fda98283..4a0309e0c7 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -104,28 +104,6 @@ mcmp(byte *s1, byte *s2, uint32 n)
}
-void
-mmov(byte *t, byte *f, uint32 n)
-{
- if(t < f) {
- while(n > 0) {
- *t = *f;
- t++;
- f++;
- n--;
- }
- } else {
- t += n;
- f += n;
- while(n > 0) {
- t--;
- f--;
- *t = *f;
- n--;
- }
- }
-}
-
byte*
mchr(byte *p, byte c, byte *ep)
{