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

jm at svn.xiph.org jm at svn.xiph.org
Fri May 26 21:55:12 PDT 2006


Author: jm
Date: 2006-05-26 21:55:09 -0700 (Fri, 26 May 2006)
New Revision: 11438

Modified:
   trunk/speex/libspeex/fixed_bfin.h
Log:
making the Blackfin version of PDIV32_16 bit-exact with the standard version


Modified: trunk/speex/libspeex/fixed_bfin.h
===================================================================
--- trunk/speex/libspeex/fixed_bfin.h	2006-05-27 04:45:02 UTC (rev 11437)
+++ trunk/speex/libspeex/fixed_bfin.h	2006-05-27 04:55:09 UTC (rev 11438)
@@ -41,6 +41,7 @@
 {
    spx_word32_t res, bb;
    bb = b;
+   a += b>>1;
    __asm__  (
          "P0 = 15;\n\t"
          "R0 = %1;\n\t"
@@ -55,7 +56,7 @@
          "R0 = R0.L;\n\t"
          "%0 = R0;\n\t"
    : "=m" (res)
-   : "m" (a+(b>>1)), "m" (bb)
+   : "m" (a), "m" (bb)
    : "P0", "R0", "R1", "cc");
    return res;
 }



More information about the commits mailing list