fix intfilter expansion logic

also makes it simpler and probably faster.
someone should contrib non-gnuc popcount if they care, i ran out of patience with this (yes i know it's simple) (it probably doesn't even need to be exactly popcount).
This commit is contained in:
cathugger 2021-03-21 16:52:15 +00:00
parent 68a06c4ced
commit f43c3b021e
No known key found for this signature in database
GPG key ID: 9BADDA2DAF6F01A8
2 changed files with 57 additions and 93 deletions

View file

@ -5,6 +5,7 @@ static inline size_t S(filter_len)(size_t i)
# ifndef OMITMASK
const u8 *m = (const u8 *)&VEC_BUF(filters,i).m;
# else // OMITMASK
(void) i;
const u8 *m = (const u8 *)&ifiltermask;
# endif // OMITMASK
size_t c = 0;