Mercurial > hg > Members > tkaito > task_dandy
comparison spe/Move08.cc @ 7:c015109a6041
schedule add. 10% done.
author | tkaito |
---|---|
date | Tue, 29 Jun 2010 04:25:32 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:661ec1e92042 | 7:c015109a6041 |
---|---|
1 #include <stdio.h> | |
2 #include "SchedTask.h" | |
3 #include "Move08.h" | |
4 #include "Func.h" | |
5 | |
6 /* これは必須 */ | |
7 SchedDefineTask(Move08); | |
8 | |
9 static int | |
10 run(SchedTask *s,void *rbuf, void *wbuf) | |
11 { | |
12 /* | |
13 int *i_data; | |
14 int *o_data; | |
15 long length; | |
16 | |
17 i_data = (int*)s->get_input(rbuf, 0); | |
18 o_data = (int*)s->get_output(wbuf, 0); | |
19 length = (long)s->get_param(0); | |
20 | |
21 for (int i = 0; i < length; i++) { | |
22 o_data[i] = i_data[i] * 2; | |
23 } | |
24 */ | |
25 return 0; | |
26 } |