annotate TaskManager/Cell/PpeScheduler.cc @ 540:c5a411c19e7e

merge
author tkaito@henri.cr.ie.u-ryukyu.ac.jp
date Wed, 21 Oct 2009 20:02:23 +0900
parents 5c194c71eca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include <stdlib.h>
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include <string.h>
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 #include "PpeScheduler.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 void*
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 PpeScheduler::allocate(int size)
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7 {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 void *buff;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 posix_memalign(&buff, DEFAULT_ALIGNMENT, size);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 bzero(buff, size);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 return buff;
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 }