Mercurial > hg > Game > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
1777:7b11aceb41c4 | 1778:0e6ca13d2ed0 |
---|---|
30 } | 30 } |
31 | 31 |
32 static int | 32 static int |
33 run(SchedTask *s, void *rbuf, void *wbuf) | 33 run(SchedTask *s, void *rbuf, void *wbuf) |
34 { | 34 { |
35 //set_inData | |
35 unsigned char *i_data = (unsigned char *)s->get_input(rbuf,0); | 36 unsigned char *i_data = (unsigned char *)s->get_input(rbuf,0); |
36 unsigned char *search_word = (unsigned char*)s->get_input(rbuf,1); | 37 //unsigned char *search_word = (unsigned char*)s->get_input(rbuf,1); |
38 unsigned char search_word[] = "doing"; | |
37 int *skip_table = (int *)s->get_input(rbuf,2); | 39 int *skip_table = (int *)s->get_input(rbuf,2); |
40 //set_param | |
38 int length = (int)s->get_inputSize(0); | 41 int length = (int)s->get_inputSize(0); |
42 s->printf("length %d\n",length); | |
39 int sw_len = (int)s->get_inputSize(1); | 43 int sw_len = (int)s->get_inputSize(1); |
40 | 44 |
41 unsigned long long *o_data = (unsigned long long*)wbuf; | 45 unsigned long long *o_data = (unsigned long long*)wbuf; |
42 | 46 |
43 //unsigned char search_word[] = "doing"; | |
44 o_data[0] = BM_method(i_data,length,search_word,sw_len,skip_table); | 47 o_data[0] = BM_method(i_data,length,search_word,sw_len,skip_table); |
45 | 48 |
46 //s->printf("in Exec.cc\n"); | 49 //s->printf("in Exec.cc\n"); |
47 return 0; | 50 return 0; |
48 } | 51 } |