diff spe/Run.cc @ 0:68a98d68d62a

commit
author yutaka@localhost.localdomain
date Sun, 28 Mar 2010 19:47:00 +0900
parents
children dcd83cefb980
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spe/Run.cc	Sun Mar 28 19:47:00 2010 +0900
@@ -0,0 +1,25 @@
+#include <stdio.h>
+#include "Run.h"
+
+void
+run(void *in, void *out, int data_length)
+{
+
+  for (int i = 0; i < data_length / sizeof(float); i++) {
+
+
+    
+    float *in_spe  = (float*)in;
+    float *out_spe = (float*)out;
+
+    //printf("%f\n",in_spe[i]);
+    
+    out_spe[i] = in_spe[i] + 1;
+
+    out_spe[i] = out_spe[i] + 1;
+    out_spe[i] = out_spe[i]*out_spe[i];
+    out_spe[i] = out_spe[i] + 1;
+    //printf("[SPE]int_spe %f\n",in_spe[i]);
+  }
+
+}