diff options
| author | Russ Cox <rsc@golang.org> | 2009-11-20 09:11:46 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-11-20 09:11:46 -0800 |
| commit | 652f55672d9f8b77890127d010268375d975872c (patch) | |
| tree | f5540d80cbce69c63a3b4569acdccf66f145311a /src/pkg/runtime/runtime.c | |
| parent | 688ffc1dc1d4706074cdd876c6f064e2c7d03c54 (diff) | |
| download | go-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.c | 22 |
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) { |
