Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: AVX2 blend
[vpp.git]
/
src
/
vppinfra
/
vector_avx2.h
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 */
/*