Index: simd/jdmrgss2.asm |
=================================================================== |
--- simd/jdmrgss2.asm (revision 78340) |
+++ simd/jdmrgss2.asm (working copy) |
@@ -19,8 +19,12 @@ |
%include "jcolsamp.inc" |
; -------------------------------------------------------------------------- |
+%ifndef NEED_SECTION |
+%define NEED_SECTION |
SECTION SEG_TEXT |
BITS 32 |
+%endif |
+ |
; |
; Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. |
; |
@@ -478,9 +482,9 @@ |
cmp ecx, byte SIZEOF_XMMWORD/8 |
jb short .column_st7 |
movq MMWORD [edi], xmmA |
- add edi, byte SIZEOF_XMMWORD/2 |
+ add edi, byte SIZEOF_XMMWORD/8*4 |
sub ecx, byte SIZEOF_XMMWORD/8 |
- psrldq xmmA, 64 |
+ psrldq xmmA, SIZEOF_XMMWORD/8*4 |
.column_st7: |
; Store one pixel (4 bytes) of xmmA to the output when it has enough |
; space. |