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

jm at svn.xiph.org jm at svn.xiph.org
Wed May 31 09:00:28 PDT 2006


Author: jm
Date: 2006-05-31 09:00:26 -0700 (Wed, 31 May 2006)
New Revision: 11483

Modified:
   trunk/speex/libspeex/fixed_bfin.h
Log:
Making the div rounding the same on Blackfin as in C.


Modified: trunk/speex/libspeex/fixed_bfin.h
===================================================================
--- trunk/speex/libspeex/fixed_bfin.h	2006-05-31 10:13:48 UTC (rev 11482)
+++ trunk/speex/libspeex/fixed_bfin.h	2006-05-31 16:00:26 UTC (rev 11483)
@@ -66,6 +66,10 @@
 {
    spx_word32_t res, bb;
    bb = b;
+   /* Make the roundinf consistent with the C version 
+      (do we need to do that?)*/
+   if (a<0) 
+      a += (b-1);
    __asm__  (
          "P0 = 15;\n\t"
          "R0 = %1;\n\t"



More information about the commits mailing list