[xiph-commits] r8835 - trunk/speex/libspeex

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Fri Feb 4 22:37:24 PST 2005


Author: jm
Date: 2005-02-04 22:37:23 -0800 (Fri, 04 Feb 2005)
New Revision: 8835

Modified:
   trunk/speex/libspeex/filters.c
Log:
ARM instruction scheduling for iir_mem2


Modified: trunk/speex/libspeex/filters.c
===================================================================
--- trunk/speex/libspeex/filters.c	2005-02-05 06:00:46 UTC (rev 8834)
+++ trunk/speex/libspeex/filters.c	2005-02-05 06:37:23 UTC (rev 8835)
@@ -248,25 +248,25 @@
       nyi = -yi;
       y[i] = yi;
       __asm__ __volatile__ (
-            ".iirloop: \n"
-
             "\tldrsh %4, [%1], #2\n"
             "\tsmull %5, %6, %3, %4\n"
+
+            ".iirloop: \n"
             "\tldr %7, [%0, #4]\n"
 
+            "\tldrsh %4, [%1], #2\n"
             "\tmov %5, %5, lsr #15\n"
-            "\tadd %5, %5, %6, lsl #17\n"
-            "\tadd %7, %7, %5\n"
+            "\tadd %8, %5, %6, lsl #17\n"
+            "\tsmull %5, %6, %3, %4\n"
+            "\tadd %7, %7, %8\n"
             "\tstr %7, [%0], #4 \n"
             "\tsubs %2, %2, #1\n"
             "\t bne .iirloop\n"
 
-            "\tldrsh %4, [%1], #2\n"
-            "\tsmull %5, %6, %3, %4\n"
-
             "\tmov %5, %5, lsr #15\n"
             "\tadd %7, %5, %6, lsl #17\n"
             "\tstr %7, [%0], #4 \n"
+
          : "=r" (deadm), "=r" (deadd), "=r" (deadidx), "=r" (nyi),
            "=r" (dead1), "=r" (dead2), "=r" (dead3), "=r" (dead4),
            "=r" (dead5), "=r" (dead6)



More information about the commits mailing list