On 07/31/2012 06:18 PM, Diego Biurrun wrote: > This will allow porting the optimized versions to cpuflags. > --- > libavutil/x86/x86util.asm | 2 +- > libswscale/x86/output.asm | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavutil/x86/x86util.asm b/libavutil/x86/x86util.asm > index 3c2ebce..52e5e58 100644 > --- a/libavutil/x86/x86util.asm > +++ b/libavutil/x86/x86util.asm > @@ -550,7 +550,7 @@ > %endif > %endmacro > > -%macro SPLATD 2-3 0 > +%macro SPLATD_OFFSET 2-3 0 > %if mmsize == 16 > pshufd %1, %2, (%3)*0x55 > %else > diff --git a/libswscale/x86/output.asm b/libswscale/x86/output.asm > index d137e6e..f822ca4 100644 > --- a/libswscale/x86/output.asm > +++ b/libswscale/x86/output.asm > @@ -187,7 +187,7 @@ cglobal yuv2planeX_%1, %3, 8, %2, filter, fltsize, src, > dst, w, dither, offset > %else ; %1 == 10/9/8 > punpcklwd m5, m3, m4 > punpckhwd m3, m4 > - SPLATD m0, m0 > + SPLATD_OFFSET m0, m0 > > pmaddwd m5, m0 > pmaddwd m3, m0
But that doesn't even use an offset... Why not just use the other cpuflag-specific SPLATD macro(s) there and remove the one that uses an offset? -Justin _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel