Mercurial > hg > Game > Cerium
annotate TaskManager/test/SetCpuTest/gpu/Twice.cc @ 1643:6c0b6947c231 draft
fix fft
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 22 Jun 2013 18:10:55 +0900 |
parents | b0e84541e2d6 |
children |
rev | line source |
---|---|
1632 | 1 #include <stdio.h> |
2 #include "SchedTask.h" | |
3 #include "Twice.h" | |
4 #include "Func.h" | |
5 | |
6 /* これは必須 */ | |
7 SchedDefineTask(Twice); | |
8 | |
9 static int | |
10 run(SchedTask *s,void *rbuf, void *wbuf) | |
11 { | |
12 int *i_data; | |
13 int *o_data; | |
14 long length; | |
15 | |
16 i_data = (int*)s->get_input(rbuf, 0); | |
17 o_data = (int*)s->get_output(wbuf, 0); | |
18 length = (long)s->get_param(0); | |
19 | |
20 for (int i = 0; i < length; i++) { | |
21 o_data[i] = i_data[i] * 2; | |
22 } | |
23 | |
24 return 0; | |
25 } |