[vlc-devel] [PATCH 08/16] neon: add deinterleaving macro
Serg Chernyavskiy
glenvt18 at gmail.com
Thu Jul 30 14:14:05 CEST 2015
Please review.
2015-06-26 14:20 GMT+03:00 glenvt18 <glenvt18 at gmail.com>:
> ---
> 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