[FFmpeg-devel] [PATCH 2/2] arm: relax byte-swap assembler constraints

Martin Storsjö martin at martin.st
Sat Sep 3 23:19:13 EEST 2022


On Sat, 3 Sep 2022, remi at remlab.net wrote:

> From: Rémi Denis-Courmont <remi at remlab.net>
>
> There are no particular reasons to force the compiler to use the same
> register as output and input operand. This forces an extra MOV
> instruction if the input value needs to be reused after the swap.
>
> In most cases, this makes no differences, as the compiler will seleect
> the same register for both operands either way.
> ---
> libavutil/arm/bswap.h | 17 ++++++++++-------
> 1 file changed, 10 insertions(+), 7 deletions(-)

These two patches LGTM - I can push them later after running them through 
some test builds (even though I don't expect there to be any issues).

// Martin


More information about the ffmpeg-devel mailing list