Mercurial > hg > Members > masakoha > masa
diff 13/April-2013/9th.html @ 51:d8f499590d82
rename 201* to 1*
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 16 Mar 2014 13:36:04 +0900 |
parents | 2013/April-2013/9th.html@e4748bca1eb3 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/13/April-2013/9th.html Sun Mar 16 13:36:04 2014 +0900 @@ -0,0 +1,128 @@ +<!DOCTYPE html> + +<!-- + Google HTML5 slide template + + Authors: Luke Mahé (code) + Marcin Wichary (code and design) + + Dominic Mazzoni (browser compatibility) + Charles Chen (ChromeVox support) + + URL: http://code.google.com/p/html5slides/ +--> + +<html> + <head> + <title>Presentation</title> + + <meta charset='utf-8'> + <script + src='http://html5slides.googlecode.com/svn/trunk/slides.js'></script> + </head> + + <style> + /* Your individual styles here, or just use inline styles if that’s + what you want. */ + + + </style> + + <body style='display: none'> + + <section class='slides layout-regular template-default'> + + <!-- Your slides (<article>s) go here. Delete or comment out the + slides below.--> + + <article> + <h1> + Ceriumによる + <br> + 正規表現マッチャの実装 + </h1> + <p> + Masataka Kohagura + <br> + 9th April , 2013 + </p> + </article> + + <article> + <h3> + 研究目的 + </h3> + <p> + 本研究室では、Cell用に作られたCeriumにて並列プログラミングを行なっている。 +近年、マルチコアCPUが主流となっているが、それをフルに使用させるためには並列プログラミングの並列度を上げる必要がある。(続く) + </p> + <p> + 現在は正規表現を並列実装している段階である。 + </p> + </article> + + <article> + <h3> + 今週までにしたこと + </h3> + <p> + a*bが含まれている行を出力するようにした。 + </p> + </article> + + <article class='smaller'> + <h3> + Exec.cc + </h3> + <section> + <pre> + + for (; i < length; i++) { + if (i_data[i] == 0x0A) { + + if (match_flag == true) { + printf("%d : ",line_num); + for (int k = 0; k < line_i; k++) { + printf("%c",line_data[k]); + } + printf("\n"); + } + match_flag = false; + line_i = 0; + line_num++; + + } else { + line_data[line_i] = i_data[i]; + line_i++; + if (i_data[i] == 0x61) { + a_flag = true; + }else if ((i_data[i] == 0x62) && (a_flag == true)) { + match_flag = true; + }else if (i_data[i] == 0x20) { + a_flag = false; + } + } + } + +</pre> + </section> + </article> + + <article class='smaller'> + <h3> + 実行結果(分割されないような小さなファイル) + </h3> + <section> + <pre> +[Masa]~% ./regex -file b.txt [~/hg/Cerium/example/regex_mas] +1 : ab aaa dddd ssss abab +2 : ab bbbbbbbbbb aaaaaaa +4 : ab aaaab + </pre> + </section> + </article> + + </section> + + </body> +</html>