[FFmpeg-devel] [PATCH] avcodec/v210: add avx2 version of the line encoder

James Darnley james.darnley at gmail.com
Thu Jan 14 22:17:09 CET 2016

On 2016-01-14 21:42, Henrik Gramner wrote:
> On Thu, Jan 14, 2016 at 9:27 PM, James Darnley <james.darnley at gmail.com> wrote:
>> On 2016-01-14 20:21, Henrik Gramner wrote:
>>> xmN can be used unconditionally which gets rid of the %else. E.g.
>>>     movu       xm1, [yq+widthq*2]
>>> %if cpuflag(avx2)
>>>     vinserti128 m1, m1, [yq+widthq*2+12], 1
>>> %endif
>> I can change that.  I slightly prefer to not mix register sizes like
>> that but it seems unavoidable with avx2.
> The xmN notation was invented for code like this and I don't really
> think that there's anything negative with using it. Reducing the
> amount of %if/%else makes stuff easier to read.
> It assembles into mmN with INIT_MMX, and xmmN with INIT_XMM and INIT_YMM.

(I shouldn't have said anything.)  I do know why it is there.  It is
just my opinion that the mixing of "styles" looks bad.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160114/14a39322/attachment.sig>

More information about the ffmpeg-devel mailing list