]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
remove asserts, as they are not needed
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sun, 3 Oct 2021 10:49:09 +0000 (10:49 +0000)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:35 +0000 (11:51 +0300)
src/nfa/shufti.cpp

index e94df5e3ecee8d7eda8edabfa0a337d46fa450c2..2d858c66577c1f5bcd4f5f18a15564a991eebcec 100644 (file)
@@ -43,8 +43,6 @@
 static really_inline
 const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf,
                         const u8 *buf_end) {
-    assert(buf < buf_end);
-
     DEBUG_PRINTF("buf %p end %p \n", buf, buf_end);
     for (; buf < buf_end; ++buf) {
         u8 c = *buf;
@@ -59,8 +57,6 @@ const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf,
 static really_inline
 const u8 *shuftiRevSlow(const u8 *lo, const u8 *hi, const u8 *buf,
                         const u8 *buf_end) {
-    assert(buf < buf_end);
-
     for (buf_end--; buf_end >= buf; buf_end--) {
         u8 c = *buf_end;
         if (lo[c & 0xf] & hi[c >> 4]) {
@@ -74,4 +70,4 @@ const u8 *shuftiRevSlow(const u8 *lo, const u8 *hi, const u8 *buf,
 #include "shufti_sve.hpp"
 #else
 #include "shufti_simd.hpp"
-#endif
\ No newline at end of file
+#endif