[xiph-commits] r12833 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Sat Apr 7 07:25:16 PDT 2007
Author: jm
Date: 2007-04-07 07:25:14 -0700 (Sat, 07 Apr 2007)
New Revision: 12833
Modified:
trunk/speex/libspeex/ltp_arm4.h
Log:
Better ARM4 assembly constraints from the Rockbox folks.
Modified: trunk/speex/libspeex/ltp_arm4.h
===================================================================
--- trunk/speex/libspeex/ltp_arm4.h 2007-04-06 12:44:25 UTC (rev 12832)
+++ trunk/speex/libspeex/ltp_arm4.h 2007-04-07 14:25:14 UTC (rev 12833)
@@ -75,9 +75,10 @@
"\tadd %2, %2, %7, asr #5\n"
"\tadd %3, %3, %10, asr #5\n"
"\tbne .inner_prod_loop%=\n"
- : "=r" (deadx), "=r" (deady), "=r" (sum1), "=r" (sum2), "=r" (deadlen),
- "=r" (dead1), "=r" (dead2), "=r" (dead3), "=r" (dead4), "=r" (dead5), "=r" (dead6)
- : "0" (x), "1" (y), "2" (sum1), "3" (sum2), "4" (len>>3)
+ : "=r" (deadx), "=r" (deady), "+r" (sum1), "+r" (sum2),
+ "=r" (deadlen), "=r" (dead1), "=r" (dead2), "=r" (dead3),
+ "=r" (dead4), "=r" (dead5), "=r" (dead6)
+ : "0" (x), "1" (y), "4" (len>>3)
: "cc"
);
return (sum1+sum2)>>1;
@@ -169,13 +170,11 @@
"\tstr %6, %13 \n"
"\tstr %7, %14 \n"
- : "=r" (y0), "=r" (y1), "=r" (y2), "=r" (y3),
+ : "+r" (y0), "+r" (y1), "+r" (y2), "+r" (y3),
"=r" (part1), "=r" (part2), "=r" (part3), "=r" (part4),
- "=r" (x), "=r" (y), "=r" (x0),
- "=m" (sum1), "=m" (sum2), "=m" (sum3), "=m" (sum4), "=r" (dead1)
- : "0" (y0), "1" (y1), "2" (y2), "3" (y3),
- "8" (x), "9" (y),
- "11" (sum1), "12" (sum2), "13" (sum3), "14" (sum4)
+ "+r" (x), "+r" (y), "=r" (x0), "+m" (sum1),
+ "+m" (sum2), "+m" (sum3), "+m" (sum4), "=r" (dead1)
+ :
: "cc", "memory"
);
}
More information about the commits
mailing list