From ee34d49b2867007a8f0633756d1482c5f567b084 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Mon, 12 Aug 2013 23:28:28 +0000 Subject: [PATCH] Fix for ret in rotate for nacl 32 bit BUG=253 TESTED=VALID R=nfullagar@google.com Review URL: https://webrtc-codereview.appspot.com/2009005 git-svn-id: http://libyuv.googlecode.com/svn/trunk@755 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- source/rotate.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/rotate.cc b/source/rotate.cc index c46650b44..8201a3830 100644 --- a/source/rotate.cc +++ b/source/rotate.cc @@ -503,7 +503,13 @@ extern "C" void TransposeUVWx8_SSE2(const uint8* src, int src_stride, "pop %edi \n" "pop %esi \n" "pop %ebx \n" +#if defined(__native_client__) + "pop %ecx \n" + "and $0xffffffe0,%ecx \n" + "jmp *%ecx \n" +#else "ret \n" +#endif ); #elif !defined(LIBYUV_DISABLE_X86) && defined(__x86_64__) // 64 bit version has enough registers to do 16x8 to 8x16 at a time.