github.com/guyezi/gofrontend@v0.0.0-20200228202240-7a62a49e62c0/libgo/runtime/go-memclr.c (about)

     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    __attribute__ ((no_split_stack));
    12  
    13  void
    14  memclrNoHeapPointers (void *p1, uintptr len)
    15  {
    16    __builtin_memset (p1, 0, len);
    17  }