summaryrefslogtreecommitdiffstats
path: root/libgo/runtime/go-memcmp.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-06 18:12:45 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-06 18:12:45 +0000
commit0b6b034c45b5e378d9fcc2459b2d6872c7e5ef00 (patch)
tree6c400558efbf8a6da2a288d4c1fa498c441915d2 /libgo/runtime/go-memcmp.c
parent4e289116e6ca6c93d8d0715dd974b192d782f355 (diff)
downloadppe42-gcc-0b6b034c45b5e378d9fcc2459b2d6872c7e5ef00.tar.gz
ppe42-gcc-0b6b034c45b5e378d9fcc2459b2d6872c7e5ef00.zip
compiler, runtime: Memcmp routine returns intgo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193253 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime/go-memcmp.c')
-rw-r--r--libgo/runtime/go-memcmp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/runtime/go-memcmp.c b/libgo/runtime/go-memcmp.c
new file mode 100644
index 00000000000..78a356b08d0
--- /dev/null
+++ b/libgo/runtime/go-memcmp.c
@@ -0,0 +1,13 @@
+/* go-memcmp.c -- the go memory comparison function.
+
+ Copyright 2012 The Go Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style
+ license that can be found in the LICENSE file. */
+
+#include "runtime.h"
+
+intgo
+__go_memcmp (const void *p1, const void *p2, uintptr len)
+{
+ return __builtin_memcmp (p1, p2, len);
+}
OpenPOWER on IntegriCloud