X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fvector_neon.h;h=81d99a64f0509933b8a205f6219f12386aa101c6;hb=622b5ce61971066917cfba9ae795d9cb926f2700;hp=307fbc541b20ccd2bf039b562d515fa1be5f5719;hpb=4e96ddaec8837b8c0bd27a75418e033da68e299b;p=vpp.git diff --git a/src/vppinfra/vector_neon.h b/src/vppinfra/vector_neon.h index 307fbc541b2..81d99a64f05 100644 --- a/src/vppinfra/vector_neon.h +++ b/src/vppinfra/vector_neon.h @@ -194,6 +194,15 @@ u8x16_word_shift_right (u8x16 x, const int n) return vextq_u8 (x, u8x16_splat (0), n); } +static_always_inline u8x16 +u8x16_reflect (u8x16 v) +{ + u8x16 mask = { + 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 + }; + return (u8x16) vqtbl1q_u8 (v, mask); +} + #define CLIB_HAVE_VEC128_MSB_MASK #define CLIB_HAVE_VEC128_UNALIGNED_LOAD_STORE