re PR c++/82308 ([C++17] deduction of template arguments results in internal compiler...
[official-gcc.git] / libgo / runtime / go-memclr.c
blobe478b658b9cd739bea6d105217def8e95df0a357
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");
12 void
13 memclrNoHeapPointers (void *p1, uintptr len)
15 __builtin_memset (p1, 0, len);