Mercurial > hg > CbC > CbC_gcc
annotate libgo/runtime/go-memclr.c @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 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 memclrNoHeapPointers(void *, uintptr) | |
10 __asm__ (GOSYM_PREFIX "runtime.memclrNoHeapPointers"); | |
11 | |
12 void | |
13 memclrNoHeapPointers (void *p1, uintptr len) | |
14 { | |
15 __builtin_memset (p1, 0, len); | |
16 } |