Mercurial > hg > Members > kono > Cerium
view example/dependency_task/spe/Print.cc @ 639:70c5c2d2eb24
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:45:24 +0900 |
parents | ab866bc8a624 |
children |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "Print.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Print); static int run(SchedTask *s, void *rbuf, void *wbuf) { int *idata = (int*)s->get_input(rbuf, 0); int length = (long)s->get_param(0); s->printf("[TASK_PRINT]\n"); for (int i = 0; i < length; i++) { s->printf("%2d ", idata[i]); } s->printf("\n"); return 0; }