Mercurial > hg > Game > Cerium
changeset 1992:35dff9efffc2 draft
rewrite '= (*)rbuf' to '= get_input(0)'
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 20 Apr 2014 20:52:09 +0900 |
parents | 82e6eb0fa692 |
children | a98e18dba579 |
files | example/word_count/ppe/Exec.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/example/word_count/ppe/Exec.cc Sat Apr 19 19:06:22 2014 +0900 +++ b/example/word_count/ppe/Exec.cc Sun Apr 20 20:52:09 2014 +0900 @@ -9,9 +9,9 @@ static int wordcount(SchedTask *s, void *rbuf, void *wbuf) { - char *i_data = (char *)rbuf; - unsigned long long *o_data = (unsigned long long*)wbuf; - unsigned long long *head_tail_flag = o_data +2; + char *i_data = (char *)s->get_input(0); + unsigned long long *o_data = (unsigned long long *)s->get_output(0); + unsigned long long *head_tail_flag = o_data + 2; int length = (int)s->get_inputSize(0); int word_flag = 0; int word_num = 0;