Add u32x4_extend_to_u64x2 for aarch64 using NEON intrinsics
This is used in vlib_get_buffers_with_offset.
Verified-by: Lijian Zhang
@@ -140,6 +140,12 @@ u32x4_hadd (u32x4 v1, u32x4 v2)
return (u32x4) vpaddq_u32 (v1, v2);
}
+static_always_inline u64x2
+u32x4_extend_to_u64x2 (u32x4 v)
+{
+ return vmovl_u32 (vget_low_u32 (v));
+}
+
#define CLIB_HAVE_VEC128_UNALIGNED_LOAD_STORE
#define CLIB_VEC128_SPLAT_DEFINED
#endif /* included_vector_neon_h */
