From 45c19733787ec7bc590d3d9a5cdb938be21ce02f Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 14 Jul 2021 12:25:34 +0200 Subject: vppinfra: remove old and unused vector macros and inlines Type: refactor Change-Id: Ic504bcfca6e7fbd85e858c3bc7a4f5e72d931789 Signed-off-by: Damjan Marion --- src/vppinfra/vector_altivec.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/vppinfra/vector_altivec.h') diff --git a/src/vppinfra/vector_altivec.h b/src/vppinfra/vector_altivec.h index c9f7facca30..1a4eccd7bbd 100644 --- a/src/vppinfra/vector_altivec.h +++ b/src/vppinfra/vector_altivec.h @@ -77,14 +77,6 @@ _(u16x8, u16, left, vslo) _(i16x8, i16, left, vslo) _(u16x8, u16, right, vsro) _(i16x8, i16, right, vsro) #undef _ - always_inline - u32 - u32x4_get0 (u32x4 x) -{ - u32x4_union_t y; - y.as_u32x4 = x; - return y.as_u32[3]; -} /* Interleave. */ #define _(t,it,lh,f) \ @@ -129,17 +121,6 @@ _signed_binop (32, 4, is_equal, vcmpequw) return u16x8_is_equal (x, zero); } -always_inline u32 -u32x4_zero_byte_mask (u32x4 x) -{ - u32x4 cmp = u32x4_is_zero (x); - u32x4 tmp = { 0x000f, 0x00f0, 0x0f00, 0xf000, }; - cmp &= tmp; - cmp |= u32x4_word_shift_right (cmp, 2); - cmp |= u32x4_word_shift_right (cmp, 1); - return u32x4_get0 (cmp); -} - #endif /* included_vector_altivec_h */ /* -- cgit 1.2.3-korg