chimera: hybrid of Hyperscan and PCRE

This commit is contained in:
Wang, Xiang W
2018-03-09 03:52:12 -05:00
parent 8a1c497f44
commit bf87f8c003
47 changed files with 6985 additions and 202 deletions

View File

@@ -46,7 +46,7 @@ using namespace std;
namespace ue2 {
u32 mmbit_size(u32 total_bits) {
u32 HS_CDECL mmbit_size(u32 total_bits) {
if (total_bits > MMB_MAX_BITS) {
throw ResourceLimitError();
}

View File

@@ -33,6 +33,7 @@
#ifndef MULTIBIT_BUILD_H
#define MULTIBIT_BUILD_H
#include "hs_common.h"
#include "multibit_internal.h"
#include "hash.h"
@@ -62,8 +63,10 @@ namespace ue2 {
*
* This will throw a resource limit assertion if the requested mmbit is too
* large.
*
* TODO:add temporary HS_CDECL for chimera on Windows, need improve this.
*/
u32 mmbit_size(u32 total_bits);
u32 HS_CDECL mmbit_size(u32 total_bits);
/** \brief Construct a sparse iterator over the values in \a bits for a
* multibit of size \a total_bits. */