summaryrefslogtreecommitdiffstats
path: root/xorg/server/module
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-09-30 00:40:17 -0700
committerJay Sorg <jay.sorg@gmail.com>2014-09-30 00:40:17 -0700
commit5c8b1de800c0e84a516a266458ee23a2b7277f4a (patch)
treed20ba3b39d3286af96d5acf99caf952ff02d6abb /xorg/server/module
parent6fc9b8dd8c5aa45eef031f00f4c02634cba8e40c (diff)
downloadxrdp-proprietary-5c8b1de800c0e84a516a266458ee23a2b7277f4a.tar.gz
xrdp-proprietary-5c8b1de800c0e84a516a266458ee23a2b7277f4a.zip
Xorg: asm, add->lea
Diffstat (limited to 'xorg/server/module')
-rw-r--r--xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm10
-rw-r--r--xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm10
2 files changed, 10 insertions, 10 deletions
diff --git a/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm b/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm
index be6939d3..e2186433 100644
--- a/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm
+++ b/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm
@@ -53,7 +53,7 @@ do8_uv:
; v
movd xmm1, [ebx] ; 4 at a time
- add ebx, 4
+ lea ebx, [ebx + 4]
punpcklbw xmm1, xmm1
pxor xmm6, xmm6
punpcklbw xmm1, xmm6
@@ -63,7 +63,7 @@ do8_uv:
; u
movd xmm2, [edx] ; 4 at a time
- add edx, 4
+ lea edx, [edx + 4]
punpcklbw xmm2, xmm2
punpcklbw xmm2, xmm6
psubw xmm2, xmm7
@@ -73,7 +73,7 @@ do8:
; y
movq xmm0, [esi] ; 8 at a time
- add esi, 8
+ lea esi, [esi + 8]
pxor xmm6, xmm6
punpcklbw xmm0, xmm6
@@ -109,10 +109,10 @@ do8:
movdqa xmm4, xmm3
punpcklwd xmm3, xmm5 ; argb
movdqa [edi], xmm3
- add edi, 16
+ lea edi, [edi + 16]
punpckhwd xmm4, xmm5 ; argb
movdqa [edi], xmm4
- add edi, 16
+ lea edi, [edi + 16]
ret;
diff --git a/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm b/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm
index 1145f9fd..9087b291 100644
--- a/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm
+++ b/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm
@@ -53,7 +53,7 @@ do8_uv:
; u
movd xmm1, [ebx] ; 4 at a time
- add ebx, 4
+ lea ebx, [ebx + 4]
punpcklbw xmm1, xmm1
pxor xmm6, xmm6
punpcklbw xmm1, xmm6
@@ -63,7 +63,7 @@ do8_uv:
; v
movd xmm2, [edx] ; 4 at a time
- add edx, 4
+ lea edx, [edx + 4]
punpcklbw xmm2, xmm2
punpcklbw xmm2, xmm6
psubw xmm2, xmm7
@@ -73,7 +73,7 @@ do8:
; y
movq xmm0, [esi] ; 8 at a time
- add esi, 8
+ lea esi, [esi + 8]
pxor xmm6, xmm6
punpcklbw xmm0, xmm6
@@ -109,10 +109,10 @@ do8:
movdqa xmm4, xmm3
punpcklwd xmm3, xmm5 ; argb
movdqa [edi], xmm3
- add edi, 16
+ lea edi, [edi + 16]
punpckhwd xmm4, xmm5 ; argb
movdqa [edi], xmm4
- add edi, 16
+ lea edi, [edi + 16]
ret;