Fix "PR c++/92804 ICE trying to use concept as a nested-name-specifier"
[official-gcc.git] / libgo / runtime / go-memclr.c
blobb5d4975e57d36f9f4aae29745eaaa59028f92619
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 memclrNoHeapPointers(void *, uintptr)
10 __asm__ (GOSYM_PREFIX "runtime.memclrNoHeapPointers")
11 __attribute__ ((no_split_stack));
13 void
14 memclrNoHeapPointers (void *p1, uintptr len)
16 __builtin_memset (p1, 0, len);