aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/vector_neon.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vppinfra/vector_neon.h b/src/vppinfra/vector_neon.h
index 2c3578c1f35..40e062eb94b 100644
--- a/src/vppinfra/vector_neon.h
+++ b/src/vppinfra/vector_neon.h
@@ -121,11 +121,7 @@ foreach_neon_vec128i foreach_neon_vec128u
static_always_inline u16x8
u16x8_byte_swap (u16x8 v)
{
- const u8 swap_pattern[] = {
- 1, 0, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 15, 14,
- };
- u8x16 swap = vld1q_u8 (swap_pattern);
- return (u16x8) vqtbl1q_u8 ((u8x16) v, swap);
+ return (u16x8) vrev16q_u8 ((u8x16) v);
}
static_always_inline u8x16