Mercurial > hg > CbC > CbC_gcc
view libgo/runtime/go-memclr.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* go-memclr.c -- clear a memory buffer Copyright 2016 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ #include "runtime.h" void memclrNoHeapPointers(void *, uintptr) __asm__ (GOSYM_PREFIX "runtime.memclrNoHeapPointers") __attribute__ ((no_split_stack)); void memclrNoHeapPointers (void *p1, uintptr len) { __builtin_memset (p1, 0, len); }