This should make the codec work on Win64 (but doesn't for unknown reasons)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3994 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/jpeg/simd/jiss2red-64.asm b/common/jpeg/simd/jiss2red-64.asm
index eddaded..f390367 100644
--- a/common/jpeg/simd/jiss2red-64.asm
+++ b/common/jpeg/simd/jiss2red-64.asm
@@ -417,9 +417,10 @@
EXTN(jsimd_idct_2x2_sse2):
push rbp
+ mov rax,rsp
mov rbp,rsp
- push rbx
collect_args
+ push rbx
; ---- Pass 1: process columns from input.
@@ -565,8 +566,8 @@
mov WORD [rdx+rax*SIZEOF_JSAMPLE], bx
mov WORD [rsi+rax*SIZEOF_JSAMPLE], cx
- uncollect_args
pop rbx
+ uncollect_args
pop rbp
ret