aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorQuan Yong Zhai <qyzhai@gmail.com>2011-07-12 17:30:40 -0700
committerRuss Cox <rsc@golang.org>2011-07-12 17:30:40 -0700
commitfe9991e8b29d261f12a0a0a15b89d67a29f5299d (patch)
treedd74907d74aaa2513d6133a9e693ca5cc43dcdcb /src/pkg/runtime/runtime.c
parentba91dac3a9e01a68e13e3ea6f6798f2f3b4ea73f (diff)
downloadgo-fe9991e8b29d261f12a0a0a15b89d67a29f5299d.tar.xz
runtime: replace runtime.mcpy with runtime.memmove
faster string operations, and more tested on linux/386 runtime_test.BenchmarkSliceToString 642 532 -17.13% runtime_test.BenchmarkStringToSlice 636 528 -16.98% runtime_test.BenchmarkConcatString 1109 897 -19.12% R=r, iant, rsc CC=golang-dev https://golang.org/cl/4674042
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 83af8dc5e2..7e37d66d41 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -116,17 +116,6 @@ runtime·panicstring(int8 *s)
runtime·panic(err);
}
-void
-runtime·mcpy(byte *t, byte *f, uint32 n)
-{
- while(n > 0) {
- *t = *f;
- t++;
- f++;
- n--;
- }
-}
-
int32
runtime·mcmp(byte *s1, byte *s2, uint32 n)
{