* g++.dg/debug/dwarf2/ref-1.C: Don't XFAIL scan-assembler-not on AIX.
[official-gcc.git] / libgo / runtime / go-memclr.c
blobde6f39a6b1e501a7ddec228360c85fa7f01e932e
1 /* go-memclr.c -- clear a memory buffer
3 Copyright 2016 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 void memclr(void *, uintptr)
10 __asm__ (GOSYM_PREFIX "runtime.memclr");
12 void
13 memclr (void *p1, uintptr len)
15 __builtin_memset (p1, 0, len);