github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/third_party/gofrontend/libgo/runtime/go-memcmp.c (about)

     1  /* go-memcmp.c -- the go memory comparison function.
     2  
     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.  */
     6  
     7  #include "runtime.h"
     8  
     9  intgo
    10  __go_memcmp (const void *p1, const void *p2, uintptr len)
    11  {
    12    return __builtin_memcmp (p1, p2, len);
    13  }