X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fstring.h;h=0d2c0655c5031a4289bd2ae79089370e0d84cf53;hb=1bc46cd6e3df29996e528c754bc574c57182cf61;hp=5d01e48eb1cef1654b6bae48cf2b25246ba1e3f5;hpb=ef0bac70995bb225fea8955009b34d5b823285ba;p=vpp.git diff --git a/src/vppinfra/string.h b/src/vppinfra/string.h index 5d01e48eb1c..0d2c0655c50 100644 --- a/src/vppinfra/string.h +++ b/src/vppinfra/string.h @@ -678,10 +678,7 @@ clib_count_equal_u8 (u8 * data, uword max_count) u64 bmp; bmp = u8x32_msb_mask ((u8x32) (u8x32_load_unaligned (data) == splat)); if (bmp != 0xffffffff) - { - count += count_trailing_zeros (~bmp); - return max_count; - } + return max_count; data += 32; count += 32;