diff example/regex_mas/ppe/Exec.cc @ 1778:0e6ca13d2ed0 draft

minor fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 26 Nov 2013 01:50:31 +0900
parents 1c429035e0d1
children a9ff87220a68
line wrap: on
line diff
--- a/example/regex_mas/ppe/Exec.cc	Mon Nov 25 17:12:51 2013 +0900
+++ b/example/regex_mas/ppe/Exec.cc	Tue Nov 26 01:50:31 2013 +0900
@@ -32,15 +32,18 @@
 static int
 run(SchedTask *s, void *rbuf, void *wbuf)
 {
+    //set_inData
     unsigned char *i_data = (unsigned char *)s->get_input(rbuf,0);
-    unsigned char *search_word = (unsigned char*)s->get_input(rbuf,1);
+    //unsigned char *search_word = (unsigned char*)s->get_input(rbuf,1);
+    unsigned char search_word[] = "doing";
     int *skip_table = (int *)s->get_input(rbuf,2);
+    //set_param
     int length = (int)s->get_inputSize(0);
+    s->printf("length %d\n",length);
     int sw_len = (int)s->get_inputSize(1);
 
     unsigned long long *o_data = (unsigned long long*)wbuf;
 
-    //unsigned char search_word[] = "doing";
     o_data[0] = BM_method(i_data,length,search_word,sw_len,skip_table);
 
     //s->printf("in Exec.cc\n");