aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/nfa/repeatcompile.cpp
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:11 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:11 +0300
commit5b283123c882433dafbaf6b338adeea16c1a0ea0 (patch)
tree339adc63bce23800021202ae4a8328a843dc447a /contrib/libs/hyperscan/src/nfa/repeatcompile.cpp
parent1aeb9a455974457866f78722ad98114bafc84e8a (diff)
downloadydb-5b283123c882433dafbaf6b338adeea16c1a0ea0.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/nfa/repeatcompile.cpp')
-rw-r--r--contrib/libs/hyperscan/src/nfa/repeatcompile.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/libs/hyperscan/src/nfa/repeatcompile.cpp b/contrib/libs/hyperscan/src/nfa/repeatcompile.cpp
index c33851ff9f..934dd29e6b 100644
--- a/contrib/libs/hyperscan/src/nfa/repeatcompile.cpp
+++ b/contrib/libs/hyperscan/src/nfa/repeatcompile.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2016, Intel Corporation
+ * Copyright (c) 2015-2016, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -34,7 +34,7 @@
#include "util/charreach.h"
#include "util/depth.h"
#include "util/dump_charclass.h"
-#include "util/multibit_build.h"
+#include "util/multibit_build.h"
#include "util/verify_types.h"
#include <algorithm>
@@ -206,13 +206,13 @@ RepeatStateInfo::RepeatStateInfo(enum RepeatType type, const depth &repeatMin,
packedFieldSizes[1] = repeatMin;
packedCtrlSize = (packedFieldSizes[0] + packedFieldSizes[1] + 7U) / 8U;
break;
- case REPEAT_ALWAYS:
- assert(repeatMin == 0ULL);
- assert(repeatMax.is_infinite());
- stateSize = 0; // everything is in the control block.
- horizon = 0;
- packedCtrlSize = 0;
- break;
+ case REPEAT_ALWAYS:
+ assert(repeatMin == 0ULL);
+ assert(repeatMax.is_infinite());
+ stateSize = 0; // everything is in the control block.
+ horizon = 0;
+ packedCtrlSize = 0;
+ break;
}
DEBUG_PRINTF("stateSize=%u, packedCtrlSize=%u, horizon=%u\n", stateSize,
packedCtrlSize, horizon);
@@ -239,14 +239,14 @@ u32 streamStateSize(enum RepeatType type, const depth &repeatMin,
}
enum RepeatType chooseRepeatType(const depth &repeatMin, const depth &repeatMax,
- u32 minPeriod, bool is_reset,
- bool has_external_guard) {
+ u32 minPeriod, bool is_reset,
+ bool has_external_guard) {
if (repeatMax.is_infinite()) {
- if (has_external_guard && !repeatMin) {
- return REPEAT_ALWAYS;
- } else {
- return REPEAT_FIRST;
- }
+ if (has_external_guard && !repeatMin) {
+ return REPEAT_ALWAYS;
+ } else {
+ return REPEAT_FIRST;
+ }
}
if (repeatMin == depth(0) || is_reset) {