Mercurial > hg > Members > kono > Cerium
comparison example/MemList/main.cc @ 395:8c5fa57128cb
chain on SPE
author | game@localhost.localdomain |
---|---|
date | Thu, 17 Sep 2009 16:55:18 +0900 |
parents | eab18aa0c7f6 |
children | 00fe05184a02 |
comparison
equal
deleted
inserted
replaced
394:e08d0aa94367 | 395:8c5fa57128cb |
---|---|
14 | 14 |
15 const char *usr_help_str = "Usage: ./hello [-cpu spe_num] [-count N]\n\ | 15 const char *usr_help_str = "Usage: ./hello [-cpu spe_num] [-count N]\n\ |
16 -cpu Number of SPE (default 1) \n \ | 16 -cpu Number of SPE (default 1) \n \ |
17 -count Number of task is print \"Hello, World!!\""; | 17 -count Number of task is print \"Hello, World!!\""; |
18 | 18 |
19 | |
19 void | 20 void |
20 test1(MemList* active, MemList* freelist, uint32 size, uint32 count) | 21 test1(MemList* active, MemList* freelist, uint32 size, uint32 count) |
21 { | 22 { |
22 /*! | 23 /*! |
23 active からランダムに要素を取り出してそこの size の領域を書き潰す | 24 active からランダムに要素を取り出してそこの size の領域を書き潰す |
29 active->moveToFirst(e); | 30 active->moveToFirst(e); |
30 bzero(e->data, size); | 31 bzero(e->data, size); |
31 } | 32 } |
32 printf("test1\n"); | 33 printf("test1\n"); |
33 } | 34 } |
35 | |
34 | 36 |
35 int | 37 int |
36 TMmain(int argc, char *argv[]) | 38 TMmain(int argc, char *argv[]) |
37 { | 39 { |
38 uint32 size = 128; | 40 uint32 size = 128; |