aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/nfa/accel.c
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:10 +0300
commit1aeb9a455974457866f78722ad98114bafc84e8a (patch)
treee4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/nfa/accel.c
parentbd5ef432f5cfb1e18851381329d94665a4c22470 (diff)
downloadydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/nfa/accel.c')
-rw-r--r--contrib/libs/hyperscan/src/nfa/accel.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/libs/hyperscan/src/nfa/accel.c b/contrib/libs/hyperscan/src/nfa/accel.c
index 2bc60945f9..3260b7bd3a 100644
--- a/contrib/libs/hyperscan/src/nfa/accel.c
+++ b/contrib/libs/hyperscan/src/nfa/accel.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2017, Intel Corporation
+ * Copyright (c) 2015-2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -81,18 +81,18 @@ const u8 *run_accel(const union AccelAux *accel, const u8 *c, const u8 *c_end) {
c_end - 1);
break;
- case ACCEL_DVERM_MASKED:
- DEBUG_PRINTF("accel dverm masked %p %p\n", c, c_end);
- if (c + 16 + 1 >= c_end) {
- return c;
- }
-
- /* need to stop one early to get an accurate end state */
- rv = vermicelliDoubleMaskedExec(accel->dverm.c1, accel->dverm.c2,
- accel->dverm.m1, accel->dverm.m2,
- c, c_end - 1);
- break;
-
+ case ACCEL_DVERM_MASKED:
+ DEBUG_PRINTF("accel dverm masked %p %p\n", c, c_end);
+ if (c + 16 + 1 >= c_end) {
+ return c;
+ }
+
+ /* need to stop one early to get an accurate end state */
+ rv = vermicelliDoubleMaskedExec(accel->dverm.c1, accel->dverm.c2,
+ accel->dverm.m1, accel->dverm.m2,
+ c, c_end - 1);
+ break;
+
case ACCEL_SHUFTI:
DEBUG_PRINTF("accel shufti %p %p\n", c, c_end);
if (c + 15 >= c_end) {
@@ -129,7 +129,7 @@ const u8 *run_accel(const union AccelAux *accel, const u8 *c, const u8 *c_end) {
rv = c_end;
break;
-
+
default:
assert(!"not here");
return c;
@@ -140,7 +140,7 @@ const u8 *run_accel(const union AccelAux *accel, const u8 *c, const u8 *c_end) {
rv = MAX(c + accel->generic.offset, rv);
rv -= accel->generic.offset;
- DEBUG_PRINTF("advanced %zd\n", rv - c);
-
+ DEBUG_PRINTF("advanced %zd\n", rv - c);
+
return rv;
}