Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
46f001d
)
vppinfra: AVX2 blend
08/13408/3
author
Damjan Marion
<damarion@cisco.com>
Tue, 10 Jul 2018 12:28:36 +0000
(14:28 +0200)
committer
Marco Varlese
<marco.varlese@suse.de>
Thu, 12 Jul 2018 08:06:25 +0000
(08:06 +0000)
Change-Id: Ie7a64318f10ebb535c98aff4e25cdfc48f60ff33
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vppinfra/vector_avx2.h
patch
|
blob
|
history
diff --git
a/src/vppinfra/vector_avx2.h
b/src/vppinfra/vector_avx2.h
index
66c46f2
..
a95ee5e
100644
(file)
--- a/
src/vppinfra/vector_avx2.h
+++ b/
src/vppinfra/vector_avx2.h
@@
-165,6
+165,12
@@
u16x16_mask_last (u16x16 v, u8 n_last)
return v & masks[16 - n_last];
}
+static_always_inline u32x8
+u32x8_blend (u32x8 v0, u32x8 v1, u8 opt)
+{
+ return (u32x8) _mm256_blend_epi32 ((__m256i) v0, (__m256i) v1, opt);
+}
+
#endif /* included_vector_avx2_h */
/*