]> git.ipfire.org Git - thirdparty/vectorscan.git/commit
refactor mcclellan runtime
authorAlex Coyte <a.coyte@intel.com>
Fri, 25 Nov 2016 04:33:27 +0000 (15:33 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 2 Dec 2016 00:35:47 +0000 (11:35 +1100)
commit106667e24e87b8abe065acc946deadfc0ffdba8a
tree1a8e6aed64a4a14f1fbe628ec3ce51729f879b62
parentef99ae108f0c37d6e3ee1d582f8eb1ac3eb95011
refactor mcclellan runtime

1. use u32 to hold the state during runtime to prevent repeated zero extension
2. have a tight small loop for processing characters which breaks when
   something interesting happens
src/nfa/mcclellan.c
src/nfa/mcclellan_common_impl.h
src/nfa/mcclellan_internal.h