mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
remove asserts, as they are not needed
This commit is contained in:
parent
fa3d509fad
commit
9e6c1c30cf
@ -43,8 +43,6 @@
|
|||||||
static really_inline
|
static really_inline
|
||||||
const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf,
|
const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf,
|
||||||
const u8 *buf_end) {
|
const u8 *buf_end) {
|
||||||
assert(buf < buf_end);
|
|
||||||
|
|
||||||
DEBUG_PRINTF("buf %p end %p \n", buf, buf_end);
|
DEBUG_PRINTF("buf %p end %p \n", buf, buf_end);
|
||||||
for (; buf < buf_end; ++buf) {
|
for (; buf < buf_end; ++buf) {
|
||||||
u8 c = *buf;
|
u8 c = *buf;
|
||||||
@ -59,8 +57,6 @@ const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf,
|
|||||||
static really_inline
|
static really_inline
|
||||||
const u8 *shuftiRevSlow(const u8 *lo, const u8 *hi, const u8 *buf,
|
const u8 *shuftiRevSlow(const u8 *lo, const u8 *hi, const u8 *buf,
|
||||||
const u8 *buf_end) {
|
const u8 *buf_end) {
|
||||||
assert(buf < buf_end);
|
|
||||||
|
|
||||||
for (buf_end--; buf_end >= buf; buf_end--) {
|
for (buf_end--; buf_end >= buf; buf_end--) {
|
||||||
u8 c = *buf_end;
|
u8 c = *buf_end;
|
||||||
if (lo[c & 0xf] & hi[c >> 4]) {
|
if (lo[c & 0xf] & hi[c >> 4]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user