X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fvector_avx512.h;h=c1b7c42a2608a695eb8643ec6be0c18403c0c197;hb=8c3f8a29374deed5a67a5fd084f186413f6183d7;hp=ac4c09b8375b71b6bd361d27fb212faccb40817e;hpb=8f6dd328b2188eb15ad839b39cb31530758a4be1;p=vpp.git diff --git a/src/vppinfra/vector_avx512.h b/src/vppinfra/vector_avx512.h index ac4c09b8375..c1b7c42a260 100644 --- a/src/vppinfra/vector_avx512.h +++ b/src/vppinfra/vector_avx512.h @@ -27,6 +27,7 @@ _(f,32,8,ps) _(f,64,4,pd) /* splat, load_unaligned, store_unaligned */ +/* *INDENT-OFF* */ #define _(t, s, c, i) \ static_always_inline t##s##x##c \ t##s##x##c##_splat (t##s x) \ @@ -43,7 +44,15 @@ t##s##x##c##_store_unaligned (t##s##x##c v, void *p) \ foreach_avx512_vec512i foreach_avx512_vec512u #undef _ -#endif /* included_vector_avx512_h */ +/* *INDENT-ON* */ + +static_always_inline u32 +u16x32_msb_mask (u16x32 v) +{ + return (u32) _mm512_movepi16_mask ((__m512i) v); +} + +#endif /* included_vector_avx512_h */ /* * fd.io coding-style-patch-verification: ON *