[FFmpeg-devel] [PATCH 6/7] lavu/aes: add x86 AESNI optimizations
James Almer
jamrial at gmail.com
Mon Oct 12 08:17:48 CEST 2015
On 10/12/2015 2:38 AM, Rodger Combs wrote:
> +%macro AES_CRYPT 1
> +%if %1 == 1
> +%define CRYPT aesdec
> +%define LAST aesdeclast
> +cglobal aes_decrypt, 6,6,2
> +%else
> +%define CRYPT aesenc
> +%define LAST aesenclast
> +cglobal aes_encrypt, 6,6,2
> +%endif
> + pxor xm1, xm1
> + mov r5d, r5d
Remove this. You can clear the high bits below using r5d.
> + imul r5, 16
shl r5d, 4
> + test r4, r4
Don't resend the patch just yet. Wait a bit for other comments
first.
More information about the ffmpeg-devel
mailing list