go-memcmp.c 349 B

1234567891011121314
  1. /* go-memcmp.c -- the go memory comparison function.
  2. Copyright 2012 The Go Authors. All rights reserved.
  3. Use of this source code is governed by a BSD-style
  4. license that can be found in the LICENSE file. */
  5. #include "runtime.h"
  6. intgo
  7. __go_memcmp (const void *p1, const void *p2, uintptr len)
  8. {
  9. return __builtin_memcmp (p1, p2, len);
  10. }