summaryrefslogtreecommitdiff
path: root/libswscale/x86
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-03 14:15:32 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-03 20:40:00 -0800
commitdccb2cd3f9d40198e319dd70cbe997b377541a10 (patch)
tree7d81e772c36247d6bc43643a9122181637e6ff3a /libswscale/x86
parentb4188f0d4688477d1f72914105a485558d86662b (diff)
swscale: make %rep unconditional.
Fixes pre-processing with latest versions of nasm.
Diffstat (limited to 'libswscale/x86')
-rw-r--r--libswscale/x86/output.asm11
1 files changed, 7 insertions, 4 deletions
diff --git a/libswscale/x86/output.asm b/libswscale/x86/output.asm
index 4f15ec98cd..68dbf51b02 100644
--- a/libswscale/x86/output.asm
+++ b/libswscale/x86/output.asm
@@ -131,8 +131,12 @@ cglobal yuv2planeX_%1, %3, 7, %2, filter, fltsize, src, dst, w, dither, offset
; pixels per iteration. In order to not have to keep track of where
; we are w.r.t. dithering, we unroll the mmx/8bit loop x2.
%if %1 == 8
-%rep 16/mmsize
-%endif ; %1 == 8
+%assign %%repcnt 16/mmsize
+%else
+%assign %%repcnt 1
+%endif
+
+%rep %%repcnt
%if %1 == 8
%if ARCH_X86_32
@@ -226,10 +230,9 @@ cglobal yuv2planeX_%1, %3, 7, %2, filter, fltsize, src, dst, w, dither, offset
add r5, mmsize/2
sub wd, mmsize/2
-%if %1 == 8
+
%assign %%i %%i+2
%endrep
-%endif ; %1 == 8
jg .pixelloop
%if %1 == 8