Mercurial > hg > Members > tkaito > task_dandy
view spe/Move02.cc @ 25:aa37f220b7a8
add new files, not working.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 24 Nov 2010 19:24:43 +0900 |
parents | c015109a6041 |
children |
line wrap: on
line source
#include <stdio.h> #include "SchedTask.h" #include "Move02.h" #include "Func.h" /* これは必須 */ SchedDefineTask(Move02); static int run(SchedTask *s,void *rbuf, void *wbuf) { /* int *i_data; int *o_data; long length; i_data = (int*)s->get_input(rbuf, 0); o_data = (int*)s->get_output(wbuf, 0); length = (long)s->get_param(0); for (int i = 0; i < length; i++) { o_data[i] = i_data[i] * 2; } */ return 0; }