mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-07-14 06:24:43 +03:00
eod: retire getELiteralMatcher
This commit is contained in:
parent
426bfc9cfb
commit
3e0232f0d6
@ -935,7 +935,7 @@ hwlmcb_rv_t roseMatcherEod(const struct RoseEngine *rose,
|
|||||||
// the eod-anchored matcher region.
|
// the eod-anchored matcher region.
|
||||||
size_t adj = eod_len - MIN(eod_len, rose->ematcherRegionSize);
|
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,
|
hwlmExec(etable, eod_data, eod_len, adj, roseCallback, scratch,
|
||||||
scratch->tctxt.groups);
|
scratch->tctxt.groups);
|
||||||
|
|
||||||
|
@ -463,17 +463,6 @@ const struct HWLM *getFLiteralMatcher(const struct RoseEngine *t) {
|
|||||||
return (const struct HWLM *)lt;
|
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
|
static really_inline
|
||||||
const void *getSBLiteralMatcher(const struct RoseEngine *t) {
|
const void *getSBLiteralMatcher(const struct RoseEngine *t) {
|
||||||
if (!t->sbmatcherOffset) {
|
if (!t->sbmatcherOffset) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user