[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-cvslog
Subject:    [xine-cvs] =?utf-8?q?HG=3A_xine-lib-1=2E2=3A_moved_register_initi?= =?utf-8?q?alizations_out_of_loop
From:       Petri_Hintukainen <phintuka () users ! sourceforge ! net>
Date:       2014-05-19 7:22:47
Message-ID: f7c8f59bf518f622228c.1400483827 () hg ! debian ! org
[Download RAW message or body]

# HG changeset patch
# User Petri Hintukainen <phintuka@users.sourceforge.net>
# Date 1400483827 -10800
# Node ID f7c8f59bf518f622228cc7fc630475d23af9cd2a
# Branch  default
# Parent  7d2a67b0dee292a826f97c2b2fdbb8f2d00de6b2
moved register initializations out of loop. do not require registers for arguments.

diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c
--- a/src/post/planar/eq2.c
+++ b/src/post/planar/eq2.c
@@ -124,15 +124,16 @@
   sstep = sstride - w;
   dstep = dstride - w;
 
+  asm volatile (
+    "movq (%0), %%mm3 \n\t"
+    "movq (%1), %%mm4 \n\t"
+    "pxor %%mm0, %%mm0 \n\t"
+    :
+    : "g" (brvec), "g" (contvec)
+  );
+
   while (h-- > 0) {
     asm volatile (
-      "movq (%0), %%mm3 \n\t"
-      "movq (%1), %%mm4 \n\t"
-      :
-      : "r" (brvec), "r" (contvec)
-    );
-    asm volatile (
-      "pxor %%mm0, %%mm0 \n\t"
       "movl %4, %%eax\n\t"
       ASMALIGN(4)
       "1: \n\t"

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic