Mercurial > hg > Game > Cerium
changeset 785:083c4a270809 draft
wordcoutn fix
author | yutaka@localhost.localdomain |
---|---|
date | Tue, 20 Apr 2010 15:54:06 +0900 |
parents | f0363db62881 |
children | 043c98537bc5 |
files | example/word_count/main.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/example/word_count/main.cc Tue Apr 20 15:40:07 2010 +0900 +++ b/example/word_count/main.cc Tue Apr 20 15:54:06 2010 +0900 @@ -119,8 +119,8 @@ /*渡すデータの最後が文字かどうか。(スペース、改行以外)*/ int word_flag = 0; - int index = 1; - int array_task_num = 1; + int index = 0; + int array_task_num = 32; for (int i = 0; i < task_num; i += array_task_num) { HTask *task_main = manager->create_task_array(TASK_EXEC,array_task_num,2,1,1); int j ; @@ -136,7 +136,7 @@ //t_exec->set_inData(0,file_mmap + index*division_size, division_size); //t_exec->set_outData(0,o_data + index*status_num, division_out_size); - printf("%c",file_mmap[index*division_size]); + //printf("%c",file_mmap[index*division_size]); t_exec->set_inData(0,&file_mmap[index*division_size], division_size); t_exec->set_outData(0,&o_data[index*status_num], division_out_size);