Mercurial > hg > Game > Cerium
diff example/regex_mas/ppe/Exec.cc @ 1774:39734c8cbcfe draft
To created BMsearch skip table method move Exec.cc to main.cc:run_start
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 23 Nov 2013 17:28:22 +0900 |
parents | b98e23499add |
children | 72e8c18bfbf6 |
line wrap: on
line diff
--- a/example/regex_mas/ppe/Exec.cc Sat Nov 23 10:22:21 2013 +0900 +++ b/example/regex_mas/ppe/Exec.cc Sat Nov 23 17:28:22 2013 +0900 @@ -47,8 +47,14 @@ { unsigned char *i_data = (unsigned char *)s->get_input(rbuf,0); unsigned char *search_word = (unsigned char*)s->get_input(rbuf,1); + int *skip_table = (int *)s->get_input(rbuf,2); int length = (int)s->get_inputSize(0); int sw_len = (int)s->get_inputSize(1); + + + for(int i = 0; i < 256;i++){ + s->printf("skip[%d]:%d\n",i,skip_table[i]); + } //unsigned char search_word[] = "doing"; unsigned long long *o_data = (unsigned long long*)wbuf;