mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 18:20:35 +03:00
Logical Combination of patterns.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
* Copyright (c) 2015-2018, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -127,6 +127,15 @@ void updateLastMatchOffset(struct RoseContext *tctxt, u64a offset) {
|
||||
tctxt->lastMatchOffset = offset;
|
||||
}
|
||||
|
||||
static really_inline
|
||||
void updateLastCombMatchOffset(struct RoseContext *tctxt, u64a offset) {
|
||||
DEBUG_PRINTF("match @%llu, last match @%llu\n", offset,
|
||||
tctxt->lastCombMatchOffset);
|
||||
|
||||
assert(offset >= tctxt->lastCombMatchOffset);
|
||||
tctxt->lastCombMatchOffset = offset;
|
||||
}
|
||||
|
||||
static really_inline
|
||||
void updateMinMatchOffset(struct RoseContext *tctxt, u64a offset) {
|
||||
DEBUG_PRINTF("min match now @%llu, was @%llu\n", offset,
|
||||
|
||||
Reference in New Issue
Block a user