Mercurial > hg > Game > Cerium
diff example/word_count/main.cc @ 1984:7bea670cdba0 draft
divide read flag change enum type
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Apr 2014 23:43:09 +0900 |
parents | 8403130d65ad |
children | c05e575da760 |
line wrap: on
line diff
--- a/example/word_count/main.cc Sat Mar 15 17:46:13 2014 +0900 +++ b/example/word_count/main.cc Thu Apr 17 23:43:09 2014 +0900 @@ -47,15 +47,6 @@ off_t size; } st_mmap_t; -/*与えられたsizeをfix_byte_sizeの倍数にする(丸め込むっていうのかな?)*/ -static int -fix_byte(int size,int fix_byte_size) -{ - size = (size/fix_byte_size)*fix_byte_size + ((size%fix_byte_size)!= 0)*fix_byte_size; - - return size; -} - static void my_mmap(char *filename, WordCount *w) { @@ -86,7 +77,7 @@ } static void -run_tasks(SchedTask *manager, WordCount *w, int task_count, HTaskPtr t_read, HTaskPtr t_next, int size) +run_tasks(SchedTask *manager, WordCount *w, int task_count, HTaskPtr t_read, HTaskPtr t_next, int size) { if (task_count < array_task_num) {