[x264-devel] [PATCH] x86: Share the mbtree_propagate_list macro with aarch64

Martin Storsjö martin at martin.st
Mon Aug 31 07:58:49 CEST 2015


On Mon, 31 Aug 2015, Janne Grunau wrote:

> On 2015-08-26 11:39:23 +0300, Martin Storsjö wrote:
>> This avoids having to duplicate the same code for all architectures
>> that implement only the internal part of this function in assembler.
>> ---
>>  common/aarch64/mc-c.c |  82 +---------------------------------------
>>  common/mc-int.h       | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++
>>  common/x86/mc-c.c     |  77 ++-----------------------------------
>>  3 files changed, 107 insertions(+), 154 deletions(-)
>>  create mode 100644 common/mc-int.h
>
> I would have moved the x86 inline asm CLIP_ADD/2 macros in the header
> too. They are protected by an arch specific define. That would have the
> avoided the #undefs. Patch either way ok

That's what I did originally, actually, but then went for this approach 
since it keeps the arch specific code here (even though it's behind a 
proper arch specific ifdef), but I can change it that way if others also 
think that'd be better.

// Martin


More information about the x264-devel mailing list