vppinfra: fix array_mask_u32 underrun
Properly handle small buffers in the AVX256 version of array_mask_u32. Type: fix Signed-off-by: Dmitry Valter <d-valter@yandex-team.com> Fixes: f62ed3f9c1ec3e8db36f63d6a54f46b7bea43723 Change-Id: Idf1cb43ccf37bd7c439d11e4f68fe30064c6d09a
This commit is contained in:
Dmitry Valter
committed by
Damjan Marion
parent
b24ff24da9
commit
966049986a
@ -57,6 +57,7 @@ clib_array_mask_u32 (u32 *src, u32 mask, u32 n_elts)
|
||||
u32x4 mask4 = u32x4_splat (mask);
|
||||
*(u32x4u *) src &= mask4;
|
||||
*(u32x4u *) (src + n_elts - 4) &= mask4;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user