sync/atomic, runtime/internal/atomic: don't assume reads from 0 fail
[official-gcc.git] / libgo / runtime / go-memcmp.c
blob78a356b08d0f1262a8695434886a8a5a665a7748
1 /* go-memcmp.c -- the go memory comparison function.
3 Copyright 2012 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
7 #include "runtime.h"
9 intgo
10 __go_memcmp (const void *p1, const void *p2, uintptr len)
12 return __builtin_memcmp (p1, p2, len);