[vlc-devel] [PATCH 08/16] neon: add deinterleaving macro
glenvt18
glenvt18 at gmail.com
Fri Jun 26 13:20:02 CEST 2015
---
src/dvbcsa_bs_neon.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/dvbcsa_bs_neon.h b/src/dvbcsa_bs_neon.h
index 32b8e18..213ae18 100644
--- a/src/dvbcsa_bs_neon.h
+++ b/src/dvbcsa_bs_neon.h
@@ -83,5 +83,13 @@ typedef uint64x2_t dvbcsa_bs_word_t;
b = vreinterpretq_u64_u8(tmp.val[1]); \
}
+/* block cipher 2-word load with byte-deinterleaving */
+#define BS_LOAD_DEINTERLEAVE_8(ptr, var_lo, var_hi) \
+ {\
+ uint8x16x2_t tmp = vld2q_u8((uint8_t *)(ptr));\
+ var_lo = vreinterpretq_u64_u8(tmp.val[0]);\
+ var_hi = vreinterpretq_u64_u8(tmp.val[1]);\
+ }
+
#endif
--
1.9.1
More information about the vlc-devel
mailing list