Mercurial > hg > Members > yutaka > manager
comparison spe/Run.cc @ 0:68a98d68d62a
commit
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 28 Mar 2010 19:47:00 +0900 |
parents | |
children | dcd83cefb980 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:68a98d68d62a |
---|---|
1 #include <stdio.h> | |
2 #include "Run.h" | |
3 | |
4 void | |
5 run(void *in, void *out, int data_length) | |
6 { | |
7 | |
8 for (int i = 0; i < data_length / sizeof(float); i++) { | |
9 | |
10 | |
11 | |
12 float *in_spe = (float*)in; | |
13 float *out_spe = (float*)out; | |
14 | |
15 //printf("%f\n",in_spe[i]); | |
16 | |
17 out_spe[i] = in_spe[i] + 1; | |
18 | |
19 out_spe[i] = out_spe[i] + 1; | |
20 out_spe[i] = out_spe[i]*out_spe[i]; | |
21 out_spe[i] = out_spe[i] + 1; | |
22 //printf("[SPE]int_spe %f\n",in_spe[i]); | |
23 } | |
24 | |
25 } |