Mercurial > hg > Members > kono > Cerium
comparison example/word_count3/ppe/Exec.cc @ 625:60aa3f241b10
64bit mode worked on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 10:59:55 +0900 |
parents | 7d9d209bdc82 |
children |
comparison
equal
deleted
inserted
replaced
624:c7b5c99252ad | 625:60aa3f241b10 |
---|---|
9 static int | 9 static int |
10 run(SchedTask *s, void *rbuf, void *wbuf) | 10 run(SchedTask *s, void *rbuf, void *wbuf) |
11 { | 11 { |
12 char *i_data = (char*)s->get_input(rbuf, 0); | 12 char *i_data = (char*)s->get_input(rbuf, 0); |
13 unsigned long long *o_data = (unsigned long long*)s->get_output(wbuf, 0); | 13 unsigned long long *o_data = (unsigned long long*)s->get_output(wbuf, 0); |
14 int length = s->get_param(0); | 14 long length = (long)s->get_param(0); |
15 int word_flag = s->get_param(1); | 15 long word_flag = (long)s->get_param(1); |
16 int word_num = 0; | 16 int word_num = 0; |
17 int line_num = 0; | 17 int line_num = 0; |
18 int i; | 18 int i; |
19 | 19 |
20 /*先頭の文字まで、飛ぶルーチン*/ | 20 /*先頭の文字まで、飛ぶルーチン*/ |