Mercurial > hg > Members > kono > Cerium
comparison example/dependency_task/ppe/Print.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 | 44c0bce54dcf |
children |
comparison
equal
deleted
inserted
replaced
624:c7b5c99252ad | 625:60aa3f241b10 |
---|---|
8 | 8 |
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 int *idata = (int*)s->get_input(rbuf, 0); | 12 int *idata = (int*)s->get_input(rbuf, 0); |
13 int length = s->get_param(0); | 13 long length = (long)s->get_param(0); |
14 | 14 |
15 s->printf("[TASK_PRINT]\n"); | 15 s->printf("[TASK_PRINT]\n"); |
16 for (int i = 0; i < length; i++) { | 16 for (int i = 0; i < length; i++) { |
17 s->printf("%2d ", idata[i]); | 17 s->printf("%2d ", idata[i]); |
18 } | 18 } |