runtime: don't call __go_alloc/__go_free in environment functions
[gcc.git] / libgo / runtime / go-memclr.c
1 /* go-memclr.c -- clear a memory buffer
2
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. */
6
7 #include "runtime.h"
8
9 void memclr(void *, uintptr)
10 __asm__ (GOSYM_PREFIX "runtime.memclr");
11
12 void
13 memclr (void *p1, uintptr len)
14 {
15 __builtin_memset (p1, 0, len);
16 }