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

jm at motherfish-iii.xiph.org jm at motherfish-iii.xiph.org
Wed Feb 9 00:19:15 PST 2005


Author: jm
Date: 2005-02-09 00:19:14 -0800 (Wed, 09 Feb 2005)
New Revision: 8891

Modified:
   trunk/speex/libspeex/ltp_arm4.h
Log:
added a shortcut to skip every second sample in open-loop pitch


Modified: trunk/speex/libspeex/ltp_arm4.h
===================================================================
--- trunk/speex/libspeex/ltp_arm4.h	2005-02-09 08:14:19 UTC (rev 8890)
+++ trunk/speex/libspeex/ltp_arm4.h	2005-02-09 08:19:14 UTC (rev 8891)
@@ -102,13 +102,32 @@
          spx_word32_t part1, part2, part3, part4, x0;
          spx_word32_t dead1;
          __asm__ __volatile__ (
+#ifdef SHORTCUTS
                "\tldrsh %10, [%8], #2 \n"
                "\tmul %4, %10, %0 \n"
+               "\tldrsh %15, [%8], #2 \n"
                "\tmul %5, %10, %1 \n"
+               "\tldrsh %0, [%9], #2 \n"
                "\tmul %6, %10, %2 \n"
+               "\tldrsh %1, [%9], #2 \n"
                "\tmul %7, %10, %3 \n"
+               
+               
+               "\tmla %4, %15, %2, %4 \n"
+               "\tldrsh %2, [%9], #2 \n"
+               "\tmla %5, %15, %3, %5 \n"
+               "\tldrsh %3, [%9], #2 \n"
+               "\tmla %6, %15, %0, %6 \n"
+               "\tmla %7, %15, %1, %7 \n"
 
+#else
                "\tldrsh %10, [%8], #2 \n"
+               "\tmul %4, %10, %0 \n"
+               "\tmul %5, %10, %1 \n"
+               "\tmul %6, %10, %2 \n"
+               "\tmul %7, %10, %3 \n"
+
+               "\tldrsh %10, [%8], #2 \n"
                "\tldrsh %0, [%9], #2 \n"
                "\tmla %4, %10, %1, %4 \n"
                "\tmla %5, %10, %2, %5 \n"
@@ -130,8 +149,8 @@
                "\tmla %7, %10, %2, %7 \n"
 
                "\tldrsh %3, [%9], #2 \n"
+#endif
 
-
                "\tldr %10, %11 \n"
                "\tldr %15, %12 \n"
                "\tadd %4, %10, %4, asr #6 \n"



More information about the commits mailing list