mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 09:21:52 +03:00
introduce Sheng-McClellan hybrid
This commit is contained in:
@@ -447,9 +447,8 @@ void createShuffleMasks(sheng *s, dfa_info &info,
|
||||
}
|
||||
}
|
||||
|
||||
bool has_accel_sheng(const NFA *nfa) {
|
||||
const sheng *s = (const sheng *)getImplNfa(nfa);
|
||||
return s->flags & SHENG_FLAG_HAS_ACCEL;
|
||||
bool has_accel_sheng(const NFA *) {
|
||||
return true; /* consider the sheng region as accelerated */
|
||||
}
|
||||
|
||||
aligned_unique_ptr<NFA> shengCompile(raw_dfa &raw,
|
||||
|
||||
Reference in New Issue
Block a user