]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
eod: retire getELiteralMatcher
authorJustin Viiret <justin.viiret@intel.com>
Tue, 14 Jun 2016 03:39:41 +0000 (13:39 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 8 Jul 2016 00:55:36 +0000 (10:55 +1000)
src/rose/program_runtime.h
src/rose/rose_internal.h

index e23a395cd7590d11df2f602621574522d018cd9a..30ecb4f7841fe420d0b410df783eedc67fbd67fa 100644 (file)
@@ -935,7 +935,7 @@ hwlmcb_rv_t roseMatcherEod(const struct RoseEngine *rose,
     // the eod-anchored matcher region.
     size_t adj = eod_len - MIN(eod_len, rose->ematcherRegionSize);
 
-    const struct HWLM *etable = getELiteralMatcher(rose);
+    const struct HWLM *etable = getByOffset(rose, rose->ematcherOffset);
     hwlmExec(etable, eod_data, eod_len, adj, roseCallback, scratch,
              scratch->tctxt.groups);
 
index 366636b68343b59ff0f5eb8820819c6e710944d3..af5b2a9536598c982c242d9f5367b46d92d3a6ad 100644 (file)
@@ -463,17 +463,6 @@ const struct HWLM *getFLiteralMatcher(const struct RoseEngine *t) {
     return (const struct HWLM *)lt;
 }
 
-static really_inline
-const void *getELiteralMatcher(const struct RoseEngine *t) {
-    if (!t->ematcherOffset) {
-        return NULL;
-    }
-
-    const char *et = (const char *)t + t->ematcherOffset;
-    assert(ISALIGNED_N(et, 8));
-    return et;
-}
-
 static really_inline
 const void *getSBLiteralMatcher(const struct RoseEngine *t) {
     if (!t->sbmatcherOffset) {