OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [runtime/] [go-new.c] - Blame information for rev 764

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
/* go-new.c -- the generic go new() function.
2
 
3
   Copyright 2009 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 "go-alloc.h"
8
#include "runtime.h"
9
#include "arch.h"
10
#include "malloc.h"
11
 
12
void *
13
__go_new (uintptr_t size)
14
{
15
  return runtime_mallocgc (size, 0, 1, 1);
16
}
17
 
18
void *
19
__go_new_nopointers (uintptr_t size)
20
{
21
  return runtime_mallocgc (size, FlagNoPointers, 1, 1);
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.