summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/vector_altivec.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-07-14 12:25:34 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-07-14 14:40:46 +0000
commit45c19733787ec7bc590d3d9a5cdb938be21ce02f (patch)
tree3c1f5a7ba744d89254a551878e55c4b3b83afc0b /src/vppinfra/vector_altivec.h
parent405debc101b20de31eda179955f7babad285cc8f (diff)
vppinfra: remove old and unused vector macros and inlines
Type: refactor Change-Id: Ic504bcfca6e7fbd85e858c3bc7a4f5e72d931789 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/vector_altivec.h')
-rw-r--r--src/vppinfra/vector_altivec.h19
1 files changed, 0 insertions, 19 deletions
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 */
/*