// 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);
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) {