Mercurial > hg > Game > Cerium
changeset 1664:99f8130793b4 draft
fix QueueInfo.h
author | Masa <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 16 Jul 2013 20:14:10 +0900 |
parents | d865530672fa |
children | bba05acb7a16 |
files | TaskManager/kernel/ppe/QueueInfo.h example/regex_mas/main.cc example/regex_mas/ppe/Exec.cc |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/TaskManager/kernel/ppe/QueueInfo.h Tue Jul 16 16:42:31 2013 +0900 +++ b/TaskManager/kernel/ppe/QueueInfo.h Tue Jul 16 20:14:10 2013 +0900 @@ -315,7 +315,7 @@ int i = 0; if (empty()) return 0; T* e = first; - while((e = e->next) != this ) i++; + while((e = e->next) != this && e ) i++; return i; }
--- a/example/regex_mas/main.cc Tue Jul 16 16:42:31 2013 +0900 +++ b/example/regex_mas/main.cc Tue Jul 16 20:14:10 2013 +0900 @@ -12,7 +12,7 @@ #include "Func.h" #include "WordCount.h" -#define EXTRA_LENGTH 2 //多く取ってくる文字数(search word length - 1) +#define EXTRA_LENGTH 4 //多く取ってくる文字数(search word length - 1) /* ;TODO * PS3でCPU数が2以上の時に、あまりが計算されてない
--- a/example/regex_mas/ppe/Exec.cc Tue Jul 16 16:42:31 2013 +0900 +++ b/example/regex_mas/ppe/Exec.cc Tue Jul 16 20:14:10 2013 +0900 @@ -49,7 +49,7 @@ unsigned long long *o_data = (unsigned long long*)wbuf; int *length = (int*)s->get_param(0); int *offset = (int*)s->get_param(1); - unsigned char search_word[] = "aba"; + unsigned char search_word[] = "doing"; o_data[0] = BM_method(i_data,offset,length,search_word,o_data);