X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fvector_neon.h;h=3ed783602969bc410cc50ab0da208377cdd220ed;hb=e877d68407d316adb64baa855985b746dcb2e102;hp=331b8ed6f5d69c0a9731814036df06ba5abef256;hpb=0b8792fd7df2d3b38265a7ac2f8fa0f07e0ffee1;p=vpp.git diff --git a/src/vppinfra/vector_neon.h b/src/vppinfra/vector_neon.h index 331b8ed6f5d..3ed78360296 100644 --- a/src/vppinfra/vector_neon.h +++ b/src/vppinfra/vector_neon.h @@ -86,6 +86,26 @@ u16x8_zero_byte_mask (u16x8 input) return (u32) (vgetq_lane_u64 (merge3, 1) << 8) + vgetq_lane_u64 (merge3, 0); } +always_inline u32 +u8x16_zero_byte_mask (u8x16 input) +{ + return u16x8_zero_byte_mask ((u16x8) input); +} + +always_inline u32 +u32x4_zero_byte_mask (u32x4 input) +{ + return u16x8_zero_byte_mask ((u16x8) input); +} + +always_inline u32 +u64x2_zero_byte_mask (u64x2 input) +{ + return u16x8_zero_byte_mask ((u16x8) input); +} + + + #endif /* included_vector_neon_h */ /*