diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-06 18:12:45 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-06 18:12:45 +0000 |
commit | 0b6b034c45b5e378d9fcc2459b2d6872c7e5ef00 (patch) | |
tree | 6c400558efbf8a6da2a288d4c1fa498c441915d2 /libgo/runtime/go-memcmp.c | |
parent | 4e289116e6ca6c93d8d0715dd974b192d782f355 (diff) | |
download | ppe42-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.c | 13 |
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); +} |